The Ease bank asks for a key-value store without an existing dictionary or set. One July 2026 candidate describes being pressed on collisions and complexity. Start by declaring the store interface and clarify expected and worst-case claims aloud.
What to prepare for Ease
Use the bank and one candidate's experience for drill selection. The example uses integer keys and open addressing so collision behavior is straightforward to trace. July 2026 Ease candidate account
Implement a probing path that survives deletion
Assume capacity 5 and integer hash modulo 5. Keys 3 and 8 home to index 3. Insert 3 at index 3 and 8 at index 4. Deleting key 3 must not make 8 unreachable when lookup starts at index 3. Related PracHub practice
Use a tombstone or a correct deletion-compaction policy. Lookup passes a tombstone but stops at a never-used slot or after a full cycle. During insert, record the first tombstone and continue searching for an existing key before reusing the slot. Maintain distinct live and occupied counts so accumulated tombstones can trigger rebuilds.
Defend complexity and hashing assumptions
With suitable hashing and a controlled effective load, lookup and put can be expected constant time. A long cluster can take O(n) and rebuilding takes O(n). Do not claim unconditional O(1) or throw for a normal hash collision. Contrast what changes if the interviewer prefers chaining.
Prepare a useful test sequence
Insert two colliding keys, delete one, update the other, then add a third colliding key. Test wraparound, a missing key and insertion into a table with no never-used slot.