Skip to content

rishabhm12/HashMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

HashMap

Implementation of HashMap in Java

  1. Implemented the HashMap<K,V> class here.

  2. Here, the class is Hash<K,V> which takes in the (key,value) pair and is kept generic. I have used the Open separate chaining method to implement the Hash<K,V> class.

  3. Methods implemented here are:
    a) put(K key, V value)
    b) get(K key)
    c) removeKey(K key)
    d) size()
    e) reHash()
    f) loadFactor()

  4. The loadFactor threshold is set to 0.7. If loadFactor exceeds 0.7, reHash() function is called to rehash the keys.

About

Implementation of HashMap in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages