Given an integer n, break it into the sum of k positive integers, where k greater than equal to 2, and maximize the product of those integers.
Return the maximum product you can get.
Example 1:
Input: n = 2
Output: 1
Explanation: 2 = 1 + 1, 1 × 1 = 1.
Example 2:
Input: n = 10
Output: 36
Explanation: 10 = 3 + 3 + 4, 3 × 3 × 4 = 36.
On this page of the site you can watch the video online Leetcode Question 343 "Integer Break" in Java with a duration of hours minute second in good quality, which was uploaded by the user Ghumman Tech 28 August 2022, share the link with friends and acquaintances, this video has already been watched 211 times on youtube and it was liked by 3 viewers. Enjoy your viewing!