It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration. E. W. Dijkstra

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.