Skip to content

Instantly share code, notes, and snippets.

@austriker27
Created February 2, 2018 05:11
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 austriker27/f049d7119275dea0d2c1795835712ba7 to your computer and use it in GitHub Desktop.
Save austriker27/f049d7119275dea0d2c1795835712ba7 to your computer and use it in GitHub Desktop.
This is a whiteboarding problem involving curly braces combos - it is very hard.
# Problem Statement
Implement an algorithm to print all valid (i.e. properly opened and closed) combinations of n pairs of braces.
## Example:
Input : 3
Output :
{{{}}}
{{}{}}
{{}}{}
{}{{}}
{}{}{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment