TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Well-formed Generated Parentheses with all combinations. More...
#include <cassert>
#include <iostream>
#include <vector>
Go to the source code of this file.
Classes | |
class | backtracking::generate_parentheses |
generate_parentheses class More... | |
Namespaces | |
namespace | backtracking |
for vector container | |
Functions | |
static void | test () |
Self-test implementations. | |
int | main () |
Main function. | |
Well-formed Generated Parentheses with all combinations.
a sequence of parentheses is well-formed if each opening parentheses has a corresponding closing parenthesis and the closing parentheses are correctly ordered
Definition in file generate_parentheses.cpp.
int main | ( | void | ) |
Main function.
Driver Code
Definition at line 110 of file generate_parentheses.cpp.
|
static |
Self-test implementations.
Definition at line 82 of file generate_parentheses.cpp.