✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
We want to arrange the n numbers stored in any array such that all negative values occur before all positive ones.
What is the minimum number of exchanges required in the worst case?