Sollicitatievraag bij IBM

Determine if array has duplicate elements or not.

Antwoord op sollicitatievraag

Anoniem

4 jun 2018

Sort array, then check ith and ith+1 position (O(nlogn) run time)