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.
BigInt is doesnt work on this kata
Here u need to know about currying
This comment is hidden because it contains spoiler information about the solution
This is the first time my code has resembled a Best Practice solution. Though I did not modify a String prototype, the majority of my solution reflects similiar to this. As noted from others I do see areas of optimization.
I don't like side effects of filter function. To get number of zeros you can just subtract lengths of both arrays:
arr.length - withoutZeros.length
Please see my solution for reference
I like the memory and runtime Big-O conservation
This comment is hidden because it contains spoiler information about the solution
hi everyone, I don't have a very high level of Javascript (at all) and it's the first time I see something like "flip(print)(4,5)" ... I don't understand what is (print), why the function is not just flip(4,5) ? Some could explain pretty please ?
The fact that there are 2 parentheses after the function is confusing to me.