Frage im Vorstellungsgespräch bei IBM

Determine if array has duplicate elements or not.

Antwort im Vorstellungsgespräch

Anonym

4. Juni 2018

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