aboutsummaryrefslogtreecommitdiff
path: root/gen_parentheses.cpp
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-02-03 15:37:19 -0700
committerJack Sangdahl <[email protected]>2025-02-03 15:37:19 -0700
commit55a67f776dd9acd258cae16ffb636751666b0f40 (patch)
tree601539de43809b70ceb8228a12c35883fa300b03 /gen_parentheses.cpp
parenta0030873dabb517594ae0394350d6715071f7fb8 (diff)
downloadleetcode-55a67f776dd9acd258cae16ffb636751666b0f40.tar.gz
leetcode-55a67f776dd9acd258cae16ffb636751666b0f40.zip
chore: Remove incomplete solutions
Diffstat (limited to 'gen_parentheses.cpp')
-rw-r--r--gen_parentheses.cpp21
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() {}