For the problem 2035. Partition Array Into Two Arrays to Minimize Sum Difference I'm getting this failure on a test case:
Input
[76,8,45,20,74,84,28,1]
Output
0
Expected
2But (45 + 20 + 74 + 28 + 1) - (76 + 8 + 84) = 0
So shouldn't the answer be 0 or am I missing anything?