leetcode/include/s0022_generate_parentheses.hpp
2022-11-30 18:20:36 +08:00

17 lines
307 B
C++

#ifndef S0022_GENERATE_PARENTHESES_HPP
#define S0022_GENERATE_PARENTHESES_HPP
#include <vector>
#include <string>
#include <cmath>
using namespace std;
class S0022 {
public:
vector<string> generateParenthesis(int n);
void dfs(string current, int left, int right, vector<string> &result);
};
#endif