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.
I don't know why this is voted as Best Practice. If you just call Array.Sort and return the element at index pos-1, benchmarking shows it will run over 10 times faster, without any allocations or garbage generation, and will be just as readable.
This comment is hidden because it contains spoiler information about the solution
I like how you incremented 'rot' when iterating the rotors instead of additionally iterating the remaining characters for every rotor like I did.
Only thing I don't like about it is that you concatenate the result strings in every rotor iteration. Would have been more performant to allocate char arrays and replace the elements then create a string from it when it's finished.
Seems like people are so obsessed with making a one-line solution that they have no regard for sensibility or performance.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I couldn't tell if you were being sarcastic at first
This comment is hidden because it contains spoiler information about the solution