首页 > Term: select and partition
select and partition
Given an array A of n elements and a positive integer k ≤ n, find the kth smallest element of A and partition the array such that A(1), ..., A(k-1) ≤ A(k) ≤ A(k+1), ..., A(n).
0
创建者
- GeorgeV
- 100% positive feedback