File tree 3 files changed +6
-6
lines changed
main/java/com/fishercoder/solutions
test/java/com/fishercoder
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Your ideas/fixes/algorithms are more than welcome!
110
110
|513|[ Find Bottom Left Tree Value] ( https://leetcode.com/problems/find-bottom-left-tree-value/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_513.java ) | O(n) |O(k) | Medium| BFS
111
111
|508|[ Most Frequent Subtree Sum] ( https://leetcode.com/problems/most-frequent-subtree-sum/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/MostFrequentSubtreeSum.java ) | O(n) |O(n) | Medium| DFS, Tree
112
112
|507|[ Perfect Number] ( https://leetcode.com/problems/perfect-number/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/PerfectNumber.java ) | O(sqrt(n)) |O(1) | Easy| Math
113
- | 506| [ Relative Ranks] ( https://leetcode.com/problems/relative-ranks/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/RelativeRanks .java ) | O(nlogn) | O(n) | Easy|
113
+ | 506| [ Relative Ranks] ( https://leetcode.com/problems/relative-ranks/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_506 .java ) | O(nlogn) | O(n) | Easy|
114
114
|505|[ The Maze II] ( https://leetcode.com/problems/the-maze-ii/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_505.java ) | O(m* n) |O(m* n) | Medium| BFS
115
115
| 504| [ Base 7] ( https://leetcode.com/problems/base-7/ ) | [ Solution] ( ../master/src/main/java/com/fishercoder/solutions/_504.java ) | O(1) | O(1) | Easy|
116
116
|503|[ Next Greater Element II] ( https://leetcode.com/problems/next-greater-element-ii/ ) |[ Solution] ( ../master/src/main/java/com/fishercoder/solutions/NextGreaterElementII.java ) | O(n) |O(n) | Medium| Stack
Original file line number Diff line number Diff line change 17
17
N is a positive integer and won't exceed 10,000.
18
18
All the scores of athletes are guaranteed to be unique.
19
19
*/
20
- public class RelativeRanks {
20
+ public class _506 {
21
21
22
22
public String [] findRelativeRanks (int [] nums ) {
23
23
int [] tmp = new int [nums .length ];
Original file line number Diff line number Diff line change 1
1
package com .fishercoder ;
2
2
3
- import com .fishercoder .solutions .RelativeRanks ;
3
+ import com .fishercoder .solutions ._506 ;
4
4
import org .junit .Before ;
5
5
import org .junit .BeforeClass ;
6
6
import org .junit .Test ;
10
10
/**
11
11
* Created by fishercoder on 1/15/17.
12
12
*/
13
- public class RelativeRanksTest {
14
- private static RelativeRanks test ;
13
+ public class _506Test {
14
+ private static _506 test ;
15
15
private static String [] expected ;
16
16
private static String [] actual ;
17
17
private static int [] nums ;
18
18
19
19
@ BeforeClass
20
20
public static void setup (){
21
- test = new RelativeRanks ();
21
+ test = new _506 ();
22
22
}
23
23
24
24
@ Before
You can’t perform that action at this time.
0 commit comments