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.
Sure, you could do that, but that would add a second full (unnecessary) pass over the input list arr whereas just calculating the number of zeros from the results of the first pass adds only constant time.
The same as my solution but what's that ominous isinstance(i, bool) for?
Nice solution
so suitable by c++
Prolog translation
what the use of the isinstance here buddy ?
Yes, @Invisibleman. Python uses
None
, rather than null though.Nice
i wanted to try something like this but couldn't. Thanks for the help
Approved
Approved
This comment is hidden because it contains spoiler information about the solution
If you find it let me know lol
Scala transaltion
CoffeeScript translation
Fixed
Loading more items...