Questa è la tua azienda?
Find kth min element in unsorted integer array.
Anonimo
Simple QuickSelect algorithm O(n) average complexity.
The best way to do it to implement on of the algorithms which complexity time is O(nlogn) then use binary search to get kth integer
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.