Monday, March 28, 2011

Kth Smallest element in an array in O(N) average time.

Given N elements in an array. Find the ith smallest element (element of rank i).

No comments:

Post a Comment