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.
the only thing you were told not to do hahaha
Is decyphering the incredibly well written instructions part of the kata difficulty?
Just a random tip.
Remember that any prime number after 10 is a multiple of 6 -+ 1 for example 11 = (6 * 2) -1 , 13 = (6 * 2) + 1
Hope this helps somebody,
The instruction: If the number has a digit 0, the numbers formed by a leading 0 should be discarded:
Just discard the 0 not the entire number, 054 is still a valid number just make it 54
The instructions should include that the numbers on the string are completely scrambled, the solution became quite simple as soon as I stopped looking for patterns on the string.
This comment is hidden because it contains spoiler information about the solution
good Kata!
Enjoyable Kata, thanks!
Hope this doesn't get marked as spoiler.
If you're having issues dealing with ties, this is something i wish i had found out earlier.
Dealing with ties by sorting in alphabetical order is mandatory it has to be done always.
The problem is that the instructions read that IF there is a tie with the prize winner, this has to be solved by sorting in alphabetical order, but this has to be done regardless two people having the same winning number.
Hope this helps
If you get the "You've mutated the original input" keep this in mind:
If you use = to create a copy of the original array, the copy will be referenced to the same address in memmory.
Try a different approach to create a copy of the original array.
Are we supposed to solve this using moments?