✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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?