Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Try printing the input and test your code with that. Have you tried with this one?
"71899703 200 6 91 425 4 67407 7 96488 6 4 2 7 31064 9 7920 1 34608557 27 72 18 81"
Your sorting algorithm when the weight is the same, will only move the
9
to the end of the same weight group, leaving the rest as it is.Mark your post as having spoiler content next time.