HashMap internals and rearranging negative/positive numbers
Filed under HERE Technologies
The question
Explain the internal workings of HashMap and the consequences of not overriding equals() or hashCode(). Design a REST API, and move all negative numbers to the beginning and positive ones to the end of an array without constant extra space.
No write-up yet. Related questions below have one.
Related HERE Technologies questions
Collected from public candidate posts and coding forums. Updated Nov 2026.