We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6fd913 commit 4c6d674Copy full SHA for 4c6d674
src/dataStructures/hashSet/openAddressing/HashSet.java
@@ -295,6 +295,7 @@ private void resize(int newCapacity) {
295
@SuppressWarnings("unchecked")
296
T[] newBuckets = (T[]) new Object[newCapacity];
297
this.buckets = newBuckets;
298
+ this.size = 0;
299
300
// re-hashes every element and re-insert into the newly created buckets.
301
Arrays.stream(temp)
0 commit comments