Reskill Americans
Code Challenge --
Sorting an Array

In this code challenge, you will be sorting the elements of an array of numbers into ascending order. You can allocate a fixed amount of additional memory (but you should try not to make a copy of all the array elements).

You can watch a sample solution, by pressing the Run button, below. When you are ready to try writing your own solution, open this CodePen Template.

Hints

There are many basic sorting algorithms to choose from:

As well as some more advanced (more efficient) algorithms:

If you'd like to see how the Grid visual simulator was implemented - you can find the source code on our Github repo.