Dark Mode
Speed Sorting Challenge decoration

Speed Sorting Challenge

This mini React app is the result of a coding challenge.  The challenge was to display all possible sequences of a defined number of marbles up to 5 as efficiently as possible.  The number of marbles is input by the user, then each combination is calculated and displayed.  Each marble is to be used only once per sequence, or not at all.

The last requirement makes this a bit more challenging.  Without this, one could increment through a base 5 number up to 5 digits and display colour coded marbles for each sequence.  Instead, you need to be a bit more thoughtful with your algorithm to ensure each marble shows up only once or not at all, while still displaying every possible sequence.  This was an enjoyable coding challenge that I recommend to anyone who codes for fun.

I used Twitter Bootstrap so it would be responsive without spending time on additional SCSS.