What is the need of hashmaps | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the need of hashmaps

15th Nov 2016, 9:28 PM
Abdulwahid Mohammed
Abdulwahid Mohammed - avatar
2 Answers
+ 4
Hash map is like collection of pairs key-parameter. Basing on key name you can get the value which is connected to that key. Possibilities of using it are almost limitless. For example it may be used to dynamically store data.
15th Nov 2016, 9:33 PM
Maksym Zieliński
Maksym Zieliński - avatar
+ 4
i believe it allows for extremely fast lookups where the chance for looking up the same index more than once is possible. In the case of a duplicate index, the algorithm-generated lookup has to deal with what is called a "collision", at which point additional steps are then taken for resolving the search.
4th Dec 2016, 3:00 PM
David