Question d’entretien chez Headstorm

It was problem on CoderPad. Basically you're given an array of numbers and you must place the numbers on a pendulum array.

Réponse à la question d'entretien

Utilisateur anonyme

7 oct. 2021

Sort the array and since you know the count just place the smallest number in the middle and place each number to the right or left of the middle number