Problem 2164 · Easy

Sort Even and Odd Indices Independently

Sort the values at even indices in ascending order and the values at odd indices in descending order. The visual separates the two index classes and sorts each lane on its own.

Open the interactive visualisation