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.
That whitespace is killing me though...
Yet another built-in I learned today!
Came here to say this
Came here to say the same.
Clever, but certainly not best practice. This code is unreadable and unadaptable.
It's essentially just creating a tuple and looping through it.
This Kata is one of the worst. And the auther is clearly a rude individual who likes to fancy themself better than others. Don't pay them any mind.
Very annoying Kata. Read the instructions VERY carefully. Note that some rules are language specific.
That doesn't work since two '(' would cancell out one '}'... instead consider using a dictionary of counts for each. e.g.
if char in '({[': d[char] += 1
if char in '})]': d[char] -= 1
It's 3 times faster than yours and WAY cleaner.