Domanda di colloquio di d-Matrix

dynamic programming to partition array with minimum sum difference.