You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|61|[Rotate List](https://leetcode.com/problems/rotate-list/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_61.java)|O(n)|O(1)|Medium| Linked List
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_62.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
importcom.fishercoder.common.utils.CommonUtils;
4
4
5
-
/**Leetcode 62. Unique Paths
5
+
/**Unique Paths
6
6
7
7
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
8
-
9
-
The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
8
+
The robot can only move either down or right at any point in time. The robot is trying to reach
9
+
the bottom-right corner of the grid (marked 'Finish' in the diagram below).
10
10
11
11
How many possible unique paths are there?*/
12
-
publicclassUniquePaths {
12
+
publicclass_62 {
13
13
14
14
/**Another typical DP question, use a 2d array:
15
15
* the first row and the first column need to be initialized to be 1 since there's only one way to reach every
@@ -44,7 +44,7 @@ public int uniquePaths_merged_for_loop(int m, int n) {
0 commit comments