edited by
2,440 views

1 Answer

6 votes
6 votes
1.) The worst case can be O(n) if all the insertions collide at the same key.

2.) This happens when we are not using an uniformly distributed hash function or when our hash table has only a single key where all the elements are chained up.

Related questions

13 votes
13 votes
3 answers
4