Tap here to switch tabs
Problem
Submissions

Problem: Integer Break

Integer Break asks you to split a given integer into at least two positive integers whose sum equals it, then return the largest product any such split can produce.

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

Integer Break asks you to split a given integer into at least two positive integers whose sum equals it, then return the largest product any such split can produce.

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`