Min Loss in Buy and sell stock
Anonymous User
632

I need to find out minimum loss which can occur with given the price of sales in each day. We can buy and sell only once.
Example Input - N=5,[6,8,10,4,9] Output = 1
N=4,[8,9,3,5] Output = 3
Where N=number of days

Comments (1)