Domanda di colloquio di Headstorm

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

Risposta di colloquio

Anonimo

7 ott 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