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?
what the use of the isinstance here buddy ?
omg im so sorry i'll use it next time bro. thanks for the reminder
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
There's definitely no need for isinstance as we're only checking for 1
It actually is
isinstance has no need here
This was insighful
This comment is hidden because it contains spoiler information about the solution
thank you, appreciate it.
Oh stop please. It is incorrect. Function should get argument whith id and should return it with the same id. This solution changed the id. So bad
I think my solution is much clearer than this
what? it's 5 kata example? its very-very easy for 5 kata
Loading more items...