Question DSA-HASH-0053
MediumWhich problem is a hash set the natural tool for?
- A.
Finding shortest paths
- B.
Sorting an array
- C.
Finding the k-th smallest element
- D.
Checking whether an array has any duplicate in O(n) expected time
Sign up free to see the answer and a step-by-step explanation.