Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Brackets by freeman_lex
def checkio(exp):
s = ''
for i in exp:
if i in '(){}[]':
s += i
if s[-2:] in ('()', '{}', '[]'):
s = s[:-2]
return not s
June 21, 2016
Comments: