Skip to content

Instantly share code, notes, and snippets.

@rasky
Last active September 2, 2019 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasky/82495152c7894ea618cd4619a109ebb0 to your computer and use it in GitHub Desktop.
Save rasky/82495152c7894ea618cd4619a109ebb0 to your computer and use it in GitHub Desktop.
def is_match(s):
# '(a[0]+b[2c[6]]) {24 + 53}' -> true
# 'f(e(d))' -> true
# '[()]{}([])' -> true
# '((b)' -> false
# '(c]' -> false
# '{(a[])' -> false
# '([)]' -> false
# '][' -> false
# 'a' -> true
# '{' -> false
# '' -> true
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment