What is a hash map in programming and where can it be used
问题 I have often heard people talking about hashing and hash maps and hash tables. I wanted to know what they are and where you can best use them for. 回答1: First you shoud maybe read this article. When you use lists and you are looking for a special item you normally have to iterate over the complete list. This is very expensive when you have large lists. A hashtable can be a lot faster, under best circumstances you will get the item you are looking for with only one access. How is it working?