Skip to content

Commit 656419e

Browse files
edit 287
1 parent 9709135 commit 656419e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Your ideas/fixes/algorithms are more than welcome!
303303
|290|[Word Pattern](https://leetcode.com/problems/word-pattern/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_290.java)| O(n)|O(n) | Easy|
304304
|289|[Game of Life](https://leetcode.com/problems/game-of-life/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_289.java)| O(m*n)|O(m*n), could be optimized to O(1) | Medium|
305305
|288|[Unique Word Abbreviation](https://leetcode.com/problems/unique-word-abbreviation/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_288.java)| O(n)|O(1) | Easy|
306-
|287|[Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/FindtheDuplicateNumber.java)| O(n)|O(1) | Medium|
306+
|287|[Find the Duplicate Number](https://leetcode.com/problems/find-the-duplicate-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_287.java)| O(n)|O(1) | Medium|
307307
|286|[Walls and Gates](https://leetcode.com/problems/walls-and-gates/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_286.java)| O(m*n)|O(g) | Medium| BFS
308308
|285|[Inorder Successor In BST](https://leetcode.com/problems/inorder-successor-in-bst/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_285.java)| O(h)|O(1) | Medium| Tree
309309
|284|[Peeking Iterator](https://leetcode.com/problems/peeking-iterator/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_284.java)| O(n)|O(n) | Medium| Design

src/main/java/com/fishercoder/solutions/FindtheDuplicateNumber.java renamed to src/main/java/com/fishercoder/solutions/_287.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Your runtime complexity should be less than O(n2).
1414
There is only one duplicate number in the array, but it could be repeated more than once.
1515
1616
*/
17-
public class FindtheDuplicateNumber {
17+
public class _287 {
1818

1919
//no-brainer, used O(n) space
2020
public int findDuplicate(int[] nums) {

0 commit comments

Comments
 (0)