Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4th solution in Clear category for Brackets by gyahun_dash
import re
def checkio(expr):
brackets = re.sub('[-+*/0-9]', '', expr)
while brackets:
brackets, substituted = re.subn('\(\)|\{\}|\[\]', '', brackets)
if not substituted: return False
return True
May 5, 2015
Comments: