IOM 2020, Блиц — Задача 65
The Blitz-contest of IOM-2020
Условие
Quicksort algorithm that sorts elements at through (inclusive) of an array can be expressed as
The letters of the word OLYMPIAD are placed in a random order. How many comparisons in the partition algorithm does the quicksort algorithm need in the worst case to bring the letters back into the correct order?
Отговори
- 28
Решение
Внимание: Непълно решение
The source contains only the answer key, no worked solution.
Answer: 28
Оригинал в Архива: iom-2020-blitz-tasks.pdf · официални решения: iom-2020-blitz-answers.pdf