2

Scenario :- All 12 elements got stored in hash map in one bucket itself due to bad hashcode implementation.

Does complexity will remain O(1) for get and put? if not then What is best way to achieve O(1) ? or in what scenario hashmap gives O(1) time complexity ?

Raj N
  • 219
  • 1
  • 13

0 Answers0