Suppose we want to arrange the n numbers stored in any array such that all negative values occur before all positive ones. Minimum number of exchanges required in the worst case is
- An-1
- Bn
- Cn+1
- DNone of the above
Solve it on GATE DA practice →More Basic Data Structures problems