Skip to content

Commit 9d54461

Browse files
Update datastructures/hashmap/README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 096619c commit 9d54461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datastructures/hashmap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Design a HashMap without using any built-in hash table libraries.
55
Implement the HashMap class:
66

77
- HashMap() initializes the object with an empty map.
8-
- void `put(int key, int value)` inserts a (key, value) pair into the HashMap. If the key already exists in the map,
8+
- void `set(int key, int value)` inserts a (key, value) pair into the HashMap. If the key already exists in the map,
99
update the corresponding value.
1010
- `int get(int key)` returns the value to which the specified key is mapped, or -1 if this map contains no mapping for
1111
the key.

0 commit comments

Comments
 (0)