Skip to content

Commit 23e319d

Browse files
committed
Add 241 note.
1 parent 88f2d24 commit 23e319d

File tree

1 file changed

+13
-0
lines changed
  • solutions/241.Different_Ways_to_Add_Parentheses

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)