✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Assume we have the following list: [10, 9, 3, 4, 2, 5] and we select 5 to be the pivot. What would the list be after one iteration of quicksort?
You should use the partition algorithm discussed in the pre-reading.