Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Stackless solution in Clear category for Brackets by blabaster
def checkio(expression):
s = ''.join(c for c in expression if c in '([{}])')
while s:
s0, s = s, s.replace('()', '').replace('[]', '').replace('{}', '')
if s == s0:
return False
return True
#These "asserts" using only for self-checking and not necessary for auto-testing
April 21, 2014
Comments: