Tap here to switch tabs
Problem
Submissions

Problem: Integer Break

med
30 min
Try to solve the Integer Break problem.

Statement

Given an integer n, split it into the sum of at least two positive integers, and maximize the product of those integers.

Return the maximum possible product.

Constraints:

  • 2≤2 \leq n $\leq 58`

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Integer Break

med
30 min
Try to solve the Integer Break problem.

Statement

Given an integer n, split it into the sum of at least two positive integers, and maximize the product of those integers.

Return the maximum possible product.

Constraints:

  • 2≤2 \leq n $\leq 58`