Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f31070c

Browse files
edit 504
1 parent 0ec5d63 commit f31070c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Your ideas/fixes/algorithms are more than welcome!
6767
|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
6868
|506|[Relative Ranks](https://leetcode.com/problems/relative-ranks/)|[Solution](../master/src/main/java/com/stevesun/solutions/RelativeRanks.java) | O(nlogn) |O(n) | Easy|
6969
|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|
7171
|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
7272
|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
7373
|500|[Keyboard Row](https://leetcode.com/problems/keyboard-row/)|[Solution](../master/src/main/java/com/stevesun/solutions/KeyboardRow.java) | O(n) |O(1) | Easy|

src/main/java/com/stevesun/solutions/Base7.java renamed to src/main/java/com/stevesun/solutions/_504.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Note: The input will be in range of [-1e7, 1e7].
1414
*/
15-
public class Base7 {
15+
public class _504 {
1616

1717
public String convertToBase7(int num) {
1818
return String.valueOf(Integer.toString(num, 7));

src/test/java/com/stevesun/Base7Test.java renamed to src/test/java/com/stevesun/_504Test.java

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

3-
import com.stevesun.solutions.Base7;
3+
import com.stevesun.solutions._504;
44
import org.junit.Before;
55
import org.junit.BeforeClass;
66
import org.junit.Test;
@@ -10,15 +10,15 @@
1010
/**
1111
* Created by stevesun on 1/15/17.
1212
*/
13-
public class Base7Test {
14-
private static Base7 test;
13+
public class _504Test {
14+
private static _504 test;
1515
private static String expected;
1616
private static String actual;
1717
private static int num;
1818

1919
@BeforeClass
2020
public static void setup(){
21-
test = new Base7();
21+
test = new _504();
2222
}
2323

2424
@Before

0 commit comments

Comments
 (0)