You have been tasked by the Wizard of Code to sort the never-ending supply of Socky-Socks using the most magical algorithm possible.
Legend has it that a single Socky-Sock can contain 5 different colors and 7 different patterns.
Use the Shaker Sort algorithm, a tried and true method for sorting Socky-Socks.But be warned, the Shaker Sort has a 30% chance of turning your Socky-Socks into a never-ending supply of identical, gray socks.
Or try the Insertion Sort, a more...insertive approach.But don't say we didn't warn you, the Insertion Sort has a 20% chance of creating a singularity that will consume all of your socks.
Or maybe try the Merging Sort, a method that's as smooth as a freshly laundered sock.
But remember, the Merging Sort only works if your Socky-Socks are all in alphabetical order.
So, which algorithm will you choose?
Socky-Socks sorted: 0
Time elapsed: 0:00:00