Editorial for Wesley's Anger Contest 4 Problem 1 - Zeyu's Zany Zort
Submitting an official solution before solving the problem yourself is a bannable offence.
The most common mistake for this problem was not following the Output Specification as many people faced
Some solutions included
qsort, bubble sort, insertion sort, built-in sort and sorting then reversing the array.
Notable solutions include:
- Creating a temporary list of , sorting it then reassigning values back to the original array .
- Creating a temporary list of , sorting it then removing from , then reinserting the temporary array back into .
Time Complexity: if bubble sort is used