Skip to main content
2 of 5
deleted 10 characters in body
Adnan
  • 44.5k
  • 6
  • 82
  • 246

#Python 3, 196 170 160 bytes

Awkwardly long, still golfing:

y=""
for C in input():
 for a in "[](){}":
  if C==a:y+=C
 y=y.replace("()","")
x=y
for r in y:x=x.replace("{}","")
for s in y:x=x.replace("[]","")
print(x=="")
Adnan
  • 44.5k
  • 6
  • 82
  • 246