Hash Table Delete
Mark the slot as used-and-emptied, because a real hole would cut the probe chain.
Cost
- Best
- O(1)
- Average
- O(1)
- Worst
- O(n)
- Space
- O(1)
Before this
Taught by the same lesson
Hash Table covers these too, in the same run.
Mark the slot as used-and-emptied, because a real hole would cut the probe chain.
Hash Table covers these too, in the same run.