package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev

# README

343. Integer Break

Solution idea:

Define $DP[i]$ the max product of breaking integer $i$

Base cases:

$DP[0] = 0, DP[1] = 1$

Recurrence:

$DP[i] = \max (j\times (i-j), j\times DP[i-j])$ for $1\leq j < i$