File tree 3 files changed +6
-6
lines changed
main/java/com/stevesun/solutions 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ Your ideas/fixes/algorithms are more than welcome!
67
67
|507|[ Perfect Number] ( https://leetcode.com/problems/perfect-number/ ) |[ Solution] ( ../master/src/main/java/com/stevesun/solutions/PerfectNumber.java ) | O(sqrt(n)) |O(1) | Easy| Math
68
68
| 506| [ Relative Ranks] ( https://leetcode.com/problems/relative-ranks/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/RelativeRanks.java ) | O(nlogn) | O(n) | Easy|
69
69
|505|[ The Maze II] ( https://leetcode.com/problems/the-maze-ii/ ) |[ Solution] ( ../master/src/main/java/com/stevesun/solutions/TheMazeII.java ) | O(m* n) |O(m* n) | Medium| BFS
70
- | 504| [ Base 7] ( https://leetcode.com/problems/base-7/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/Base7 .java ) | O(1) | O(1) | Easy|
70
+ | 504| [ Base 7] ( https://leetcode.com/problems/base-7/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/_504 .java ) | O(1) | O(1) | Easy|
71
71
|503|[ Next Greater Element II] ( https://leetcode.com/problems/next-greater-element-ii/ ) |[ Solution] ( ../master/src/main/java/com/stevesun/solutions/NextGreaterElementII.java ) | O(n) |O(n) | Medium| Stack
72
72
|501|[ Find Mode in Binary Tree] ( https://leetcode.com/problems/find-mode-in-binary-tree/ ) |[ Solution] ( ../master/src/main/java/com/stevesun/solutions/FindModeinBinaryTree.java ) | O(n) |O(k) | Easy| Binary Tree
73
73
| 500| [ Keyboard Row] ( https://leetcode.com/problems/keyboard-row/ ) | [ Solution] ( ../master/src/main/java/com/stevesun/solutions/KeyboardRow.java ) | O(n) | O(1) | Easy|
Original file line number Diff line number Diff line change 12
12
13
13
Note: The input will be in range of [-1e7, 1e7].
14
14
*/
15
- public class Base7 {
15
+ public class _504 {
16
16
17
17
public String convertToBase7 (int num ) {
18
18
return String .valueOf (Integer .toString (num , 7 ));
Original file line number Diff line number Diff line change 1
1
package com .stevesun ;
2
2
3
- import com .stevesun .solutions .Base7 ;
3
+ import com .stevesun .solutions ._504 ;
4
4
import org .junit .Before ;
5
5
import org .junit .BeforeClass ;
6
6
import org .junit .Test ;
10
10
/**
11
11
* Created by stevesun on 1/15/17.
12
12
*/
13
- public class Base7Test {
14
- private static Base7 test ;
13
+ public class _504Test {
14
+ private static _504 test ;
15
15
private static String expected ;
16
16
private static String actual ;
17
17
private static int num ;
18
18
19
19
@ BeforeClass
20
20
public static void setup (){
21
- test = new Base7 ();
21
+ test = new _504 ();
22
22
}
23
23
24
24
@ Before
You can’t perform that action at this time.
0 commit comments