Skip to content

Commit 3ef9eae

Browse files
committed
Runtime: 111 ms (Top 44.23%) | Memory: 43.1 MB (Top 76.28%)
1 parent 541e828 commit 3ef9eae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/algorithms/R/Robot Return to Origin/Robot Return to Origin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var judgeCircle = function(moves) {
1+
// Runtime: 111 ms (Top 44.23%) | Memory: 43.1 MB (Top 76.28%)
2+
var judgeCircle = function(moves) {
23
let x=0,y=0
34
for(i=0;i<moves.length;i++){
45
switch (moves[i]) {
@@ -18,5 +19,4 @@ var judgeCircle = function(moves) {
1819
}
1920
return x === 0 && y === 0
2021

21-
22-
};
22+
};

0 commit comments

Comments
 (0)