Skip to main content
1 of 4
lirtosiast
  • 21.5k
  • 5
  • 52
  • 127

##Pyth, 15 bytes

eSm-F/Ld"[]"._z

Counts the difference of [s and ]s, and takes the maximum.

Try it here.

lirtosiast
  • 21.5k
  • 5
  • 52
  • 127