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.
simple and easy
it took me some time until i figured the -1 and -2 to get the second form the last
cool, although it's not as straightforward
i did that throws error had to check for string len 2 or 3
Same! TIL
A quick word of thanks - I actively learned from this. I appreciate all of you who put this answer in and helped make my code better. :)
Perfect!
Beautiful, simple and efficient.
But this code will produce an incorrect answer to arr = [1,1,1]. Or do I understand something wrong?
.
Let's not give anyone any stupid ideas, please.
This comment has been deleted.
ooo is good code cafoooo
My friend, we write solutions not tests. The TESTS round answers, not solutions. What are you talking about?
Thank you for this! This is what I wanted to do but didn't know how to do, so had to longhand it. This is very neat, thanks for teaching me
Loading more items...