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.
In general, the code is clear, for each element of the array of 3, the conditions for obtaining them are separated by commas, for 1 number it is just the number itself (for 2 and 3 according to the formula, (or 2 times 15))
This comment is hidden because it contains spoiler information about the solution
hard to read :(( but speed didn't chande... right?
How it works?
Clever, but unreadable.
Yeah, people need to learn the difference between unnecessarily complicated code that they think it looks cool and best practices
Are you looping through vowels instead of string(a) with just replacing the desired chars ???
this is painful
string.split() already returns an array(list)....
nvm
how did you come up with that algorithm?
Best practice - really?
Shorter code but is it cleaner? If I found this code in the wild I would have to think a long time about edge cases.
clever
runs 2 times through both the strings. One can do better... ;)
@
anter
check the link too, if you want a way to totally avoid the use ofif/else
;)Loading more items...