We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f2d24 commit 23e319dCopy full SHA for 23e319d
solutions/241.Different_Ways_to_Add_Parentheses/readme.md
@@ -0,0 +1,13 @@
1
+## 241. Different Ways to Add Parentheses (Medium)
2
+
3
+### **链接**:
4
+题目:https://leetcode.com/problems/different-ways-to-add-parentheses/
5
+代码(github):https://github.com/illuz/leetcode
6
7
+### **题意**:
8
+给一个式子每一步操作都加上括号,会有不同的结果,把所有结果都输出来。
9
10
+### **分析**:
11
12
+可以用递归做,只看某个符号,计算符号左边的式子和右边的式子,再对得到的两个解集进行交叉运算(笛卡尔乘)。
13
+因为有不少重复计算,可以进行记忆化。
0 commit comments