GATE | GATE CS 1999 | Question 13

Last Updated :
Discuss
Comments
Suppose we want to arrange the ii numbers stored in an array such that all negative values occur before all positive ones. Minimum number of exchanges required in the worst case is:
n-1
n
n+1
None of the above
Share your thoughts in the comments