Skip to content

Commit 92af74f

Browse files
committed
Custom HashMap
Signed-off-by: https://github.com/Someshdiwan <someshdiwan369@gmail.com>
1 parent 2e1e8dd commit 92af74f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • Section 25 Collections Frameworks/Map Interface/HashMap/Custom HashMap/src

Section25CollectionFramework/src/CustomHashMapDemo/CustomHashMap.java renamed to Section 25 Collections Frameworks/Map Interface/HashMap/Custom HashMap/src/CustomHashMap.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
package CustomHashMapDemo;
2-
31
/*
42
build a custom HashMap from scratch!
53
6-
We'll implement a simple version of Java’s HashMap<K, V> using:
4+
We'll implement a simple version of Java HashMap<K, V> using:
75
86
- Array of LinkedLists (Separate Chaining for Collision Handling)
97
- Custom put(), get(), and remove() methods
@@ -25,6 +23,7 @@
2523
- resize() ? Expands capacity when needed.
2624
2725
*/
26+
2827
import java.util.LinkedList;
2928

3029
class CustomHashMap<K, V> {
@@ -194,4 +193,4 @@ public static void main(String[] args) {
194193
- Understand How HashMap Works Internally
195194
- Learn About Collision Handling (Linked List Chaining)
196195
- Practice Hashing, Rehashing, and Resizing
197-
*/
196+
*/

0 commit comments

Comments
 (0)