- 链接地址:https://blog.csdn.net/beixingyuan/article/details/115641300
- 链接标题:leetcode(力扣)第二十二题:括号生成_C++_力扣 括号生成 c++-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1067
文章浏览阅读110次。class Solution {public: vector<string> ans; void put(int L, int R, string t){ if(L==0){ while(R--!=0) t+=')'; ans.push_back(t); } else{ put(L-1,R,t+'('); if(L<R) _力扣 括号生成 c++
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除
标签:力扣 括号生成 c++