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 must have gotten passed prior to the addition of tests with punctuation?
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?
This solution doesn't work.
'Hello, world' -> 'Hello, orldway'.
Should be:
'Hello, world' -> 'elloHay, orldway'
what the use of the isinstance here buddy ?
I made it so complicated! This solution is awesome!
Just when I was patting myself in the back for solving this problem, I see this masterpiece.
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
I didnt realize this notation would work for string of length 1. good to know.
This comment is hidden because it contains spoiler information about the solution
good idea!
Beautiful
samesies
Loading more items...