We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541e828 commit 3ef9eaeCopy full SHA for 3ef9eae
scripts/algorithms/R/Robot Return to Origin/Robot Return to Origin.js
@@ -1,4 +1,5 @@
1
-var judgeCircle = function(moves) {
+// Runtime: 111 ms (Top 44.23%) | Memory: 43.1 MB (Top 76.28%)
2
+var judgeCircle = function(moves) {
3
let x=0,y=0
4
for(i=0;i<moves.length;i++){
5
switch (moves[i]) {
@@ -18,5 +19,4 @@ var judgeCircle = function(moves) {
18
19
}
20
return x === 0 && y === 0
21
-
22
-};
+};
0 commit comments