I get the answer for [3,3,5,0,0,3,1,4] as 8 which I think is correct unless I have understood the problem incorrectly. The test cases say it should be 6 ? Can someone please confirm ???
You may complete at most two transactions.
transaction 1: [3, 5]
transaction 2: [0, 4]
So the answer is 6.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.