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

Commit f6b47b5

Browse files
fix(hashmap): improve methods documentation
1 parent 8ea61ce commit f6b47b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎src/data-structures/maps/hash-maps/hash-map.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ class HashMap {
3030
this.reset();
3131
}
3232

33+
/**
34+
* Reset or reinitialize all values on the hashmap. Used for rehashing.
35+
*
36+
* @param {array} buckets - New bucket.
37+
* @param {number} size - The new size of the hashmap.
38+
* @param {number} collisions - The number of collisions.
39+
* @param {array} keysTrackerArray - The array of keys in insertion order
40+
* @param {number} keysTrackerIndex - The last index of keysTrackerArray
41+
*/
3342
reset(
3443
buckets = new Array(this.initialCapacity),
3544
size = 0,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /