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.
you deserved a clever
Thats a bit overkill isnt it?
"." could be lifted out of ternary if :)
"You can use if..else or ternary operator to complete it."
Ok.
This comment is hidden because it contains spoiler information about the solution
if someone new is having doubt here go read about String pool, basically in each concatenation a new string object is created and it consumes way too much memory
Ahuenno pocany
Any code monkey can do it the string way. We don't see many solutions that do it the math way. Good one!
you made me chuckle XD
lolololol
Because a String object can't be changed. In this code in the line "s+=string;" a new string is created every iteration.
syka blyat .. good one )) Prosto zaebis
Best practice?
Look no switch :)))
O(N^2) Best practice... wow. )))
Loading more items...