Bloomberg LP Interview Question
InternsTeam: Financial Software Developer
Country: United States
Interview Type: Phone Interview
We can create a class HashMap_Element that will have 2 variables Key and Value. And then we will create another class myHashMap that will contain an array of HashMap_Elements. In the second class we will have to make sure that when the array becomes almost full we will create a new array with a doubled size then the last one and move all the elements from the last one into the new one.
www(dot)algolist(dot)net/Data_structures/Hash_table/Simple_example
- 59.aditya January 26, 2013