Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6de4ca9

Browse files
fix build
1 parente5af0c1 commit6de4ca9

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ public Node(int key, int val) {
9494
}
9595

9696
Node[]nodes;
97-
intSIZE =1000000;
97+
intsize =1000000;
9898

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

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

125125
privateintgetHashedKey(intkey) {
126-
returnInteger.hashCode(key) %SIZE;
126+
returnInteger.hashCode(key) %size;
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp