Skip to content

Commit 9ca0308

Browse files
Steve SunSteve Sun
Steve Sun
authored and
Steve Sun
committed
make Eclipse happy
1 parent 3257c2b commit 9ca0308

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

MEDIUM/src/medium/LinkedListRandomNode.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
*/
2929
public class LinkedListRandomNode {
3030

31-
}
32-
33-
class Solution {
31+
private class Solution {
3432
private Map<Integer, ListNode> map;
3533
private Random rand;
3634

@@ -50,4 +48,5 @@ public int getRandom() {
5048
return map.get(rand.nextInt(map.size())).val;
5149
}
5250
}
51+
}
5352

MEDIUM/src/medium/RandomPickIndex.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Solution_MemoryLimitExceeded {
3838
private Map<Integer, List<Integer>> map = new HashMap();
3939
java.util.Random rand = new java.util.Random();
4040

41-
public Solution_MLE(int[] nums) {
41+
public Solution_MemoryLimitExceeded(int[] nums) {
4242
for(int i = 0; i < nums.length; i++){
4343
if(map.containsKey(nums[i])){
4444
List<Integer> list = map.get(nums[i]);

0 commit comments

Comments
 (0)