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.
My solution with flat() method in JS gives a TypeError for some reason but it all works fine in my vscode.
Nice Kata!!! Feels like 6 kyu to me!))
I'm looking at the solutions and I still don't get it!) Is there some formula that I'm missing?
This comment is hidden because it contains spoiler information about the solution
If You pass all 50 tests and fail one in JS (expected '' to equal '1') then in Your !!!CASE!!! You shoud relax like a true warrior and wait for the Universe to give all answers.