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.
Yeah
This can generate a small subset of the valid strings only.
Beautiful
Am I correct in saying that this wouldn't work if there were opening parentheses without closing parentheses to match it?
This one's my favorite. Very concise and readable. Nice
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time. Because you did integer division there. That's how Ruby's division work.
This comment is hidden because it contains spoiler information about the solution
poetic
This is a clever solution but not too optimal because is calculating the same value
value.to_s.size
every timecalculate("Morgainstern has 3 edge cases and gains 1")
:^)
Can someone please explain me this as I am a beginner and I am having hard time trying to understand this and how it is working. Thanks.
I learned a lot about
sum
method here. I never even thought about it taking a block. Awesome!Lovely!! 😁
I'm so glad I could come up with the exact same algo! 😁
So this is how to deal with the zeroes! Nice
Loading more items...