Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't needed?' Improve the code and then document it to make it even clearer. Steve McConnell

Dictionary lookup

Language Java | Level Intermediate | Category Algorithms | August 2, 2015 7:09 pm


Algorithm Problem Description

Dictionary is an abstract data type composed of a collection of keys and values. The Dictionary does not take duplicate keys and must write to handle collisions that occur when two keys are mapped to same index.

Write a program to look up the item from the hash tables. Value can be duplicated and keys should not duplicate.

Output

          	        
          	        

Items in the dictionary: [Helo,Hello,Hllo,Hellosiva,HelloWorld,]
Search 'Hello' string from the dictionary: Hello (1 words)

          	        
          	        				    


Comments



Please login to add comments.