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.
This comment is hidden because it contains spoiler information about the solution
This is so confusing 😅, took a while before i understood what was going on
Normalize explaining your code with comments please. I have a hard time understanding this code.
describe
andit
blocks, and updated to the latest version of Node used by Codewars.this solution is kinda cool (:
It's still approvable. And I still don't like it enough to actually approve it.
clean
probaby not.
do you mean this part
(0*)
of the regex?, he/she is grouping here the part w/ zeros, I think it's clever, in a good sense, don't you think so?, or am I missing something?It's approvable. But is it ( still ) original?
Good solution!
Thanks!
match
is the full match of the regex, which in this case is ignored since we just want to use the two capture groups (p1 and p2).What does the 'match' in the function do?
I've now added some random test cases. Thanks for your feedback.
Loading more items...