Loading...
Engaged Employer
How would you quickly find the kth smallest number in an unsorted array?
Anonymous
Using heap is the right track
int findKthSmallestt(int[] a, int k) { Arrays.sort(a); return a[k-1]; }
Quick Select. O(n) time complexity.
quicksort and the traverse?
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.