GitBook: [#2] No subject

This commit is contained in:
Cores
2022-01-07 09:00:01 +00:00
committed by gitbook-bot
parent 456ff183d5
commit fa872a22b7
119 changed files with 4436 additions and 5678 deletions

View File

@ -8,7 +8,8 @@
n 个骰子扔在地上求点数和为 s 的概率
<div align="center"> <img src="https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/195f8693-5ec4-4987-8560-f25e365879dd.png" width="300px"> </div><br>
![](https://cs-notes-1256109796.cos.ap-guangzhou.myqcloud.com/195f8693-5ec4-4987-8560-f25e365879dd.png)\
## 解题思路
@ -16,7 +17,7 @@
使用一个二维数组 dp 存储点数出现的次数其中 dp\[i]\[j] 表示前 i 个骰子产生点数 j 的次数
空间复杂度O(N<sup>2</sup>)
空间复杂度O(N2)
```java
public List<Map.Entry<Integer, Double>> dicesSum(int n) {