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.
good update with !![] to get 1s, but template literal really looks like cheating
still good improvement
Shortened previous kata with template literals, and true/false Arrays converted into 1's & 0's
OP solved it, closing and due to different input type
I also try to use sort to solve this Kata, but I fail. If there are two zero at the beginning, only one of them will be moved.
You can get my code by searching 'sort' in the browser.
Even shorter :3
why so long?
Shorter, non need for const
x'D true set to 1
This comment is hidden because it contains spoiler information about the solution
damn just look at that beautiful arrangement of array.
Oh, I'm new here, sorry.
Use spoiler flag next time, your post was visible in the home page.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution