Skip to content

Commit 1e43d5a

Browse files
committed
复习
1 parent 856181d commit 1e43d5a

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

docs/0343-integer-break.adoc

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
11
[#0343-integer-break]
2-
= 343. Integer Break
2+
= 343. 整数拆分
33

4-
{leetcode}/problems/integer-break/[LeetCode - Integer Break^]
4+
https://leetcode.cn/problems/integer-break/[LeetCode - 343. 整数拆分 ^]
55

6-
Given a positive integer _n_, break it into the sum of *at least* two positive integers and maximize the product of those integers. Return the maximum product you can get.
6+
给定一个正整数 `+n+` ,将其拆分为 `+k+`*正整数*
7+
的和( `+k >= 2+` ),并使这些整数的乘积最大化。
78

8-
*Example 1:*
9+
返回 _你可以获得的最大乘积_
910

11+
*示例 1:*
1012

11-
[subs="verbatim,quotes,macros"]
12-
----
13-
*Input:* 2
14-
*Output:* 1
15-
*Explanation:* 2 = 1 + 1, 1 × 1 = 1.
16-
----
13+
....
14+
输入: n = 2
15+
输出: 1
16+
解释: 2 = 1 + 1, 1 × 1 = 1。
17+
....
1718

19+
*示例 2:*
1820

19-
*Example 2:*
21+
....
22+
输入: n = 10
23+
输出: 36
24+
解释: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36。
25+
....
2026

21-
[subs="verbatim,quotes,macros"]
22-
----
23-
*Input:* 10
24-
*Output:* 36
25-
*Explanation:* 10 = 3 + 3 + 4, 3 × 3 × 4 = 36.
26-
----
27+
*提示:*
2728

28-
*Note*: You may assume that _n_ is not less than 2 and not larger than 58.
29+
* `+2 <= n <= 58+`
2930
3031
31-
== 解题分析
32+
== 思路分析
3233

3334
image::images/0343-02.png[{image_attr}]
3435

0 commit comments

Comments
 (0)