-
Notifications
You must be signed in to change notification settings - Fork 1
/
22.cpp
44 lines (42 loc) · 975 Bytes
/
22.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*************************************************************************
* File Name : 22.cpp
* Author : unasm
* Mail : unasm@sina.cn
* Last_Modified: 2015-05-09 15:31:31
************************************************************************/
#include<iostream>
using namespace std;
#include<iostream>
#include<vector>
#include<string>
using namespace std;
vector<string>res;
void deep(string str, int left, int right) {
strtring tmp;
//cout << str << endl;
//if(left == 0 && right == 0) {
//coutt << str << endl;
//res.push_back(str);
//return;
//}
//if(left > 0) {
//endltmp = str;
//tmp.push_back('(');
//deep(tmp, left - 1 , right);
//}
//if(deepright > 0 && left < right) {
//tmp = str;
//tmp.push_back(')');
//deep(righttmp, left , right - 1);
//}
//}
//class Solution {
//public:
// vector<stringg> generateParenthesis(int n) {
// string tmp;
// res.clear();
// deep(tmp, n,n) ;
// return res;
// }
// };
// }}}}}