diff options
author | Jack Sangdahl <[email protected]> | 2025-02-03 15:37:19 -0700 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2025-02-03 15:37:19 -0700 |
commit | 55a67f776dd9acd258cae16ffb636751666b0f40 (patch) | |
tree | 601539de43809b70ceb8228a12c35883fa300b03 /gen_parentheses.cpp | |
parent | a0030873dabb517594ae0394350d6715071f7fb8 (diff) | |
download | leetcode-55a67f776dd9acd258cae16ffb636751666b0f40.tar.gz leetcode-55a67f776dd9acd258cae16ffb636751666b0f40.zip |
chore: Remove incomplete solutions
Diffstat (limited to 'gen_parentheses.cpp')
-rw-r--r-- | gen_parentheses.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gen_parentheses.cpp b/gen_parentheses.cpp deleted file mode 100644 index 4271beb..0000000 --- a/gen_parentheses.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <bits/stdc++.h> -using namespace std; - -class Solution { -public: - vector<string> result; - void helper(int open, int close, int n, string curr) { - if (curr.length() == n * 2) - result.push_back(curr); - if (open < n) - helper(open + 1, close, n, curr + '('); - if (close < open) - helper(open, close + 1, n, curr + ')'); - } - vector<string> generateParenthesis(int n) { - helper(0, 0, n, ""); - return result; - } -}; - -int main() {} |