You are given loads of arrays and you want to know roughly how many steps it will take to sort each one.
A step consists of:
swapping the first and second element of the array.
rotating the array forward (last element becomes the first)
rotating the array backward.
so the default way of ranking these arrays is by assigning each array a random number. This gives 50% chance that the array with the higher number will take more steps to sort. I need to do better! (ideally around 80%)