Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
using stack solution in Clear category for Brackets by cheikhnamouna
def checkio(e):
s, opened, closed = [], '{[(', '}])'
for c in e:
if c in opened:
s.append(c)
elif c in closed:
if not s or s.pop() != opened[closed.find(c)]:
return False
return not s
Dec. 30, 2018
Comments: