You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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.
5
7
6
8
For example, given n = 2, return 1 (2 = 1 + 1); given n = 10, return 36 (10 = 3 + 3 + 4).
@@ -13,17 +15,19 @@ There is a simple O(n) solution to this problem.
13
15
You may check the breaking results of n ranging from 7 to 10 to discover the regularities.
0 commit comments