Skip to content

Instantly share code, notes, and snippets.

@nikasulo
Created August 29, 2019 12:30
Show Gist options
  • Save nikasulo/82bbbaa45673732e181523d5434e5796 to your computer and use it in GitHub Desktop.
Save nikasulo/82bbbaa45673732e181523d5434e5796 to your computer and use it in GitHub Desktop.
Push if it is an opening
s.pushFront(string[i]) if string[i] == '{' || string[i] == '[' || string[i] == '('
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment