This commit is contained in:
krahets
2023-10-08 01:43:28 +08:00
parent 3d2d669b43
commit baac2d11a7
52 changed files with 999 additions and 625 deletions
@@ -147,7 +147,7 @@ $$
```csharp title="max_product_cutting.cs"
/* 最大切分乘积:贪心 */
int maxProductCutting(int n) {
int MaxProductCutting(int n) {
// 当 n <= 3 时,必须切分出一个 1
if (n <= 3) {
return 1 * (n - 1);