Can anyone tell me how the max profit for [3,3,5,0,0,3,1,4] is 6 and not 8?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.