Skip to content

Instantly share code, notes, and snippets.

@quickgrid
Last active September 29, 2015 09:34
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 quickgrid/72b1adc38d8752cd6905 to your computer and use it in GitHub Desktop.
Save quickgrid/72b1adc38d8752cd6905 to your computer and use it in GitHub Desktop.
These are some critical inputs for UVA 673 Parentheses Balance Problem. All of them are balanced. Their output should be Yes.
99
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) [] ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) [] ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) ]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) [] ]
[ () ( [])]
[ () ( [])]
[ () ( []()((())() ( [[ ] [ [ [( ([]) ) ] ] [] ] ] ))()) [] ]
[ () ( [])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment