Kth Smallest Element in the Array




Given an unsorted array, find the nth smallest element in the array. Can also be asked as: Given a Set of numbers, find and return the Nth smallest number.

Ready to practice with a mock interview?

Book mock interviews with engineers from Google, Facebook, Amazon, or other top companies. Get detailed feedback on exactly what you need to work on. Everything is anonymous, and you don't have to until you find a job.

Computer Dude