Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Replace solution in Speedy category for Brackets by StIKEG
# Проверка размещения скобок в формуле
def checkio(expression):
result=''
for add in expression:
if add in '(){}[]':
result=(result+add).replace('()','').replace('{}','').replace('[]','')
return result==''
Feb. 12, 2015