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.
just renaming the vars makes it much more readable
This comment is hidden because it contains spoiler information about the solution
yes that solution is not be best because of unnecesary loops.
but yours has unnecessary array size extension (pushs) too. same with array destructuring
This is exactly what I did and I was wondering about this - thanks!
It's not that hard to read, if you're familiar with regular expressions. I recommend getting familiar, they are pretty useful.
There's also a lot of Math problems on other coding platforms, so I don't see the problem there. If your intent should be followed ,then all CW Math problems will require re-emphasization in which things don't work as such ! Also, programmers should not learn how to code only, but to have in-depth analytical thinking too!