Question DSA-HASH-0076
HardWhen Java's HashMap resizes from capacity 16 to 32, where can an entry from bucket 5 end up?
- A.
Any bucket
- B.
Bucket 10
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
When Java's HashMap resizes from capacity 16 to 32, where can an entry from bucket 5 end up?
Any bucket
Bucket 10
Sign up free to see the answer and a step-by-step explanation.
Bucket 5 or bucket 21
Bucket 0