Problem link: - https://leetcode.com/problems/partition-array-into-two-arrays-to-minimize-sum-difference/
Do anyone know the DP solution of this problem ?
For positive value its giving the correct output but not for negative values.
I know it can be done by binary search but i was learning DP, thats why I want to know how it can be done in DP.