更新代码块

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

@@ -95,7 +95,7 @@ dp[i][j] 就可以是 dp[i - zeroNum][j - oneNum] + 1。
那么本题也是物品就是strs里的字符串背包容量就是题目描述中的m和n。
代码如下:
```C++
```CPP
for (string str : strs) { // 遍历物品
int oneNum = 0, zeroNum = 0;
for (char c : str) {
@@ -126,7 +126,7 @@ for (string str : strs) { // 遍历物品
以上动规五部曲分析完毕C++代码如下:
```C++
```CPP
class Solution {
public:
int findMaxForm(vector<string>& strs, int m, int n) {