Skip to content

Commit 64bd659

Browse files
fix problem number
1 parent d593b15 commit 64bd659

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Your ideas/fixes/algorithms are more than welcome!
2626
|763|[Partition Labels](https://leetcode.com/problems/partition-labels/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_763.java) | O(n) | O(1) | |Medium|
2727
|762|[Prime Number of Set Bits in Binary Representation](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_762.java) | O(n) | O(1) | |Easy|
2828
|760|[Find Anagram Mappings](https://leetcode.com/problems/find-anagram-mappings/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_760.java) | O(n^2) | O(1) | |Easy|
29-
|755|[Reach a Number](https://leetcode.com/problems/reach-a-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_755.java) | O(n) | O(1) | |Medium| Math
29+
|754|[Reach a Number](https://leetcode.com/problems/reach-a-number/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_754.java) | O(n) | O(1) | |Medium| Math
3030
|750|[Number Of Corner Rectangles](https://leetcode.com/problems/number-of-corner-rectangles/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_750.java) | O((m*n)^2) | O(1) | |Medium|
3131
|748|[Shortest Completing Word](https://leetcode.com/problems/shortest-completing-word/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_748.java) | O(n) | O(1) | |Easy|
3232
|747|[Largest Number Greater Than Twice of Others](https://leetcode.com/problems/largest-number-greater-than-twice-of-others/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_747.java) | O(n) | O(1) | |Easy|

src/main/java/com/fishercoder/solutions/_755.java renamed to src/main/java/com/fishercoder/solutions/_754.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.fishercoder.solutions;
22

33
/**
4-
* 755. Reach a Number
4+
* 754. Reach a Number
55
*
66
* You are standing at position 0 on an infinite number line. There is a goal at position target.
77
* On each move, you can either go left or right. During the n-th move (starting from 1), you take n steps.
@@ -26,7 +26,7 @@
2626
target will be a non-zero integer in the range [-10^9, 10^9].
2727
*/
2828

29-
public class _755 {
29+
public class _754 {
3030
public static class Solution1 {
3131
/**Two case:
3232
* 1. go to the right, and reach the goal exactly.

src/test/java/com/fishercoder/_755Test.java renamed to src/test/java/com/fishercoder/_754Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package com.fishercoder;
22

3-
import com.fishercoder.solutions._755;
3+
import com.fishercoder.solutions._754;
44
import org.junit.BeforeClass;
55
import org.junit.Test;
66

77
import static org.junit.Assert.assertEquals;
88

9-
public class _755Test {
10-
private static _755.Solution1 solution1;
9+
public class _754Test {
10+
private static _754.Solution1 solution1;
1111

1212
@BeforeClass
1313
public static void setup() {
14-
solution1 = new _755.Solution1();
14+
solution1 = new _754.Solution1();
1515
}
1616

1717
@Test

0 commit comments

Comments
 (0)