Skip to content

Commit 6de4ca9

Browse files
fix build
1 parent e5af0c1 commit 6de4ca9

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+3
-3
lines changed

src/main/java/com/fishercoder/solutions/_706.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ public Node(int key, int val) {
9494
}
9595

9696
Node[] nodes;
97-
int SIZE = 1000000;
97+
int size = 1000000;
9898

9999
/**
100100
* Initialize your data structure here.
101101
*/
102102
public MyHashMap() {
103-
nodes = new Node[SIZE];
103+
nodes = new Node[size];
104104
}
105105

106106
/**
@@ -123,7 +123,7 @@ public void put(int key, int value) {
123123
}
124124

125125
private int getHashedKey(int key) {
126-
return Integer.hashCode(key) % SIZE;
126+
return Integer.hashCode(key) % size;
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)