Can somebody please help me in this harsh map need an answer and some exlainations please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can somebody please help me in this harsh map need an answer and some exlainations please

19th Jul 2016, 11:16 AM
Festus Mwagha
Festus Mwagha - avatar
1 Answer
0
Think of them as a dictionary. Hashmaps use a parameterized key and value structure, all keys are unique and can be used to access values in your hashmap, you can then use a hashing function to put values into your hashmap and use the same hashing function to access individual values, best case scenario is a space and time complexity of O(1), constant which in computing terms is the most efficient way to store then manipulate/ access/ and randomly accesses values within your hash map. As a dictionary, your hashing function returns what it synonymous to a page number(key) in you dictionary where you can look for a word then get it's meaning(value)
21st Jul 2016, 5:34 AM
Eric Gitangu
Eric Gitangu - avatar