0
点赞
收藏
分享

微信扫一扫

leetcode-22-Generate Parentheses

野见 2023-08-23 阅读 58


We can use recursive to solve, every time we can check if current situation can append ‘(’ or ‘)’. Then append it recursive. If meet left == n and right == n, store the string.

Not too many point to take care.


举报

相关推荐

0 条评论