auto commit
This commit is contained in:
parent
426ab8c8f2
commit
2604dd2c85
|
@ -976,7 +976,7 @@ public int combinationSum4(int[] nums, int target) {
|
||||||
|
|
||||||
题目描述:交易之后需要有一天的冷却时间。
|
题目描述:交易之后需要有一天的冷却时间。
|
||||||
|
|
||||||
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/c847d6e4-3610-4f3c-a909-89a5048426e6.png"/> </div><br>
|
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/83acbb02-872a-4178-b22a-c89c3cb60263.jpg" width="300px"> </div><br>
|
||||||
|
|
||||||
```java
|
```java
|
||||||
public int maxProfit(int[] prices) {
|
public int maxProfit(int[] prices) {
|
||||||
|
@ -1017,7 +1017,7 @@ The total profit is ((8 - 1) - 2) + ((9 - 4) - 2) = 8.
|
||||||
|
|
||||||
题目描述:每交易一次,都要支付一定的费用。
|
题目描述:每交易一次,都要支付一定的费用。
|
||||||
|
|
||||||
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/79e9a938-43e2-4c5a-8de9-fe55522a14c9.png"/> </div><br>
|
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/1e2c588c-72b7-445e-aacb-d55dc8a88c29.png" width="300px"> </div><br>
|
||||||
|
|
||||||
```java
|
```java
|
||||||
public int maxProfit(int[] prices, int fee) {
|
public int maxProfit(int[] prices, int fee) {
|
||||||
|
|
|
@ -1214,11 +1214,12 @@ private int cubeNum(int i, int j) {
|
||||||
|
|
||||||
45 度对角线标记数组的长度为 2 \* n - 1,通过下图可以明确 (r, c) 的位置所在的数组下标为 r + c。
|
45 度对角线标记数组的长度为 2 \* n - 1,通过下图可以明确 (r, c) 的位置所在的数组下标为 r + c。
|
||||||
|
|
||||||
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/6646db4a-7f43-45e4-96ff-0891a57a9ade.jpg"/> </div><br>
|
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/9c422923-1447-4a3b-a4e1-97e663738187.jpg" width="300px"> </div><br>
|
||||||
|
|
||||||
|
|
||||||
135 度对角线标记数组的长度也是 2 \* n - 1,(r, c) 的位置所在的数组下标为 n - 1 - (r - c)。
|
135 度对角线标记数组的长度也是 2 \* n - 1,(r, c) 的位置所在的数组下标为 n - 1 - (r - c)。
|
||||||
|
|
||||||
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/f1ff65ed-bbc2-4b92-8a94-7c5c0874da0f.jpg"/> </div><br>
|
<div align="center"> <img src="https://gitee.com/CyC2018/CS-Notes/raw/master/docs/pics/7a85e285-e152-4116-b6dc-3fab27ba9437.jpg" width="300px"> </div><br>
|
||||||
|
|
||||||
```java
|
```java
|
||||||
private List<List<String>> solutions;
|
private List<List<String>> solutions;
|
||||||
|
|
BIN
docs/pics/1e2c588c-72b7-445e-aacb-d55dc8a88c29.png
Normal file
BIN
docs/pics/1e2c588c-72b7-445e-aacb-d55dc8a88c29.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
docs/pics/7a85e285-e152-4116-b6dc-3fab27ba9437.jpg
Normal file
BIN
docs/pics/7a85e285-e152-4116-b6dc-3fab27ba9437.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
BIN
docs/pics/83acbb02-872a-4178-b22a-c89c3cb60263.jpg
Normal file
BIN
docs/pics/83acbb02-872a-4178-b22a-c89c3cb60263.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
docs/pics/9c422923-1447-4a3b-a4e1-97e663738187.jpg
Normal file
BIN
docs/pics/9c422923-1447-4a3b-a4e1-97e663738187.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
Loading…
Reference in New Issue
Block a user