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'm sorry if I don't understand something, but this solution can pass test with empty array, isn't it?
Smart!
What is the year of that solution?
good work!
This is the first time my solution has matched the top solution! First time I've used array.map() as well.
Actually, the machine only knows what it will do with every position where you write a 'name'. It doesn't in fact read the name, to it it's just a code that means "this position, which is named 'name' will be coded accordingly with that which the function 'map' is already preprogrammed to do".
It's a common mistake when we are beginners trying understanding what is 'written', once that we humans are used to subjectively give written symbols intrinsic meaning, but the machine see things in a different way. You'll get used sometime, just don't give in.
you have to use the
spoiler flag
, otherwise everyone can see the codeThis comment is hidden because it contains spoiler information about the solution
spoiler flag, plz...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
after a kata forcing me to learn regex I now start to appreciate it a lot!
"find pattern and do sth with it" vibe that regex methods give seems more readable than other methods (where lil setups scattered around & can be confusing at the beginning uh for a newbie like me)
Increased number of tests.
cleaned up
The comment in the initial code says to move 1's to the end.
Loading more items...