Problem
Given an integern, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers.
Return the maximum product you can get.
Examples
Constraints
- 2 <= n <= 58
Tested Python solution for LeetCode 343 with 15 pytest cases. Generate a practice environment with lcpy.
n, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers.
Return the maximum product you can get.