leetcode/include/s0022_generate_parentheses.hpp

17 lines
307 B
C++
Raw Normal View History

2022-11-21 13:15:56 +00:00
#ifndef S0022_GENERATE_PARENTHESES_HPP
#define S0022_GENERATE_PARENTHESES_HPP
2022-11-14 02:27:21 +00:00
#include <vector>
#include <string>
#include <cmath>
using namespace std;
2022-11-30 10:20:36 +00:00
class S0022 {
2022-11-14 02:27:21 +00:00
public:
vector<string> generateParenthesis(int n);
2022-11-30 10:20:36 +00:00
void dfs(string current, int left, int right, vector<string> &result);
2022-11-14 02:27:21 +00:00
};
#endif