We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fed81a2 commit c86ae82Copy full SHA for c86ae82
src/main/java/com/fishercoder/solutions/_657.java
@@ -1,26 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 657. Judge Route Circle
5
- *
6
- * Initially, there is a Robot at position (0, 0).
7
- * Given a sequence of its moves, judge if this robot makes a circle,
8
- * which means it moves back to the original place.
9
-
10
- The move sequence is represented by a string.
11
- And each move is represent by a character.
12
- The valid robot moves are R (Right), L (Left), U (Up) and D (down).
13
- The output should be true or false representing whether the robot makes a circle.
14
15
- Example 1:
16
- Input: "UD"
17
- Output: true
18
19
- Example 2:
20
- Input: "LL"
21
- Output: false
22
- */
23
24
public class _657 {
25
public static class Solution1 {
26
public boolean judgeCircle(String moves) {
0 commit comments