Skip to content

Commit c86ae82

Browse files
refactor 657
1 parent fed81a2 commit c86ae82

File tree

1 file changed

+0
-21
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-21
lines changed

src/main/java/com/fishercoder/solutions/_657.java

-21
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
package com.fishercoder.solutions;
22

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-
243
public class _657 {
254
public static class Solution1 {
265
public boolean judgeCircle(String moves) {

0 commit comments

Comments
 (0)