is below two transaction consider overlapping or not ??
for t = 1
k = 2
n = 5
arr[] = 23 4 5 9 20
can i sell 2nd day stock arr[1] , 3rd day stock arr[2] on 5th day arr[4]
to gain maximum profit.
total profit = 31.
is above two transaction consider overlapping or not ??
note : in above array is zero based indexing