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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
already discussed some messages below + see the fork
This sollution will not work all the times. If generated words contain capital letter inside, the result will be other than expected:
example:
input string s: 'wrong SoLlution'
expected: '#WrongSollution'
observed: '#WrongSoLlution' <-- one L is capital
If I am wrong, please do let me know.
it is possible to use
find_smallest_int = min
I wonder which of these 2 is better sollution.
I've used syntax like in this answer, couse it looks more readable for me.
but using '=' would probably be more optimal?
This comment is hidden because it contains spoiler information about the solution
well, using case here is probably overkill. I should have done it like people above