更新代码块

This commit is contained in:
youngyangyang04
2021-08-10 22:20:48 +08:00
parent c7c34dd824
commit 8a2d42013c
192 changed files with 552 additions and 552 deletions

View File

@@ -103,7 +103,7 @@ j相当于是头结点的元素从1遍历到i为止。
代码如下:
```C++
```CPP
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
dp[i] += dp[j - 1] * dp[i - j];
@@ -123,7 +123,7 @@ n为5时候的dp数组状态如图
综上分析完毕C++代码如下:
```C++
```CPP
class Solution {
public:
int numTrees(int n) {