Skip to content

Commit cbbde4f

Browse files
edit 374
1 parent 82bfa86 commit cbbde4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Your ideas/fixes/algorithms are more than welcome!
221221
|377|[Combination Sum IV](https://leetcode.com/problems/combination-sum-iv/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_377.java)| O(?)|O(?) | Medium|
222222
|376|[Wiggle Subsequence](https://leetcode.com/problems/wiggle-subsequence/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_376.java)| O(n)|O(1) | Medium| DP, Greedy
223223
|375|[Guess Number Higher or Lower II](https://leetcode.com/problems/guess-number-higher-or-lower-ii/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_375.java)| O(n^2)|O(n^2) | Medium| DP
224-
|374|[Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/)|[Solution](../master/src/main/java/com/fishercoder/solutions/GuessNumberHigherorLower.java)| O(logn)|O(1) | Easy| Binary Search
224+
|374|[Guess Number Higher or Lower](https://leetcode.com/problems/guess-number-higher-or-lower/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_374.java)| O(logn)|O(1) | Easy| Binary Search
225225
|373|[Find K Pairs with Smallest Sums](https://leetcode.com/problems/find-k-pairs-with-smallest-sums/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_373.java)| O(?)|O(?) | Medium| Heap
226226
|372|[Super Pow](https://leetcode.com/problems/super-pow/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_372.java)| O(n)|O(1) | Medium| Math
227227
|371|[Sum of Two Integers](https://leetcode.com/problems/sum-of-two-integers/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_371.java)| O(n)|O(1) | Easy|

src/main/java/com/fishercoder/solutions/GuessNumberHigherorLower.java renamed to src/main/java/com/fishercoder/solutions/_374.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
n = 10, I pick 6.
1515
1616
Return 6.*/
17-
public class GuessNumberHigherorLower {
17+
public class _374 {
1818
/**The core problem/trouble to solve this problem is to figure out the problem description:
1919
* this API: guess(int num) means to take your guess num and let you know if your guessed num is bigger or smaller than the answer.
2020
* That's why if num > target, it returns -1 which means the target is smaller than your guess!!!*/
@@ -44,7 +44,7 @@ private int guess(int num) {
4444
}
4545

4646
public static void main(String...strings){
47-
GuessNumberHigherorLower test = new GuessNumberHigherorLower();
47+
_374 test = new _374();
4848
System.out.println(test.guessNumber(10));
4949
}
5050

0 commit comments

Comments
 (0)