mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-02 05:07:13 +00:00
build
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user