leetle

Daily challenge for 2025-05-04

124. Integer Break

Write a function solve that breaks an integer n (n >= 2) into the maximum product of its parts.

Example:
Input: 10
Output: 36
Explanation: 10 = 3 + 3 + 4, and 3 * 3 * 4 = 36.

Run this challenge interactively in Python or JavaScript when the app loads.