Find the lowest, highest, median price of a stock, you will be altered when the price of a stock is updated.. so the stock will be comming like a stream...Finding a meadian i see lot of solutons online, but i don't see any solution for finding the lowest and highest value until now..
Ex Input:
Stock:
19878800 - > 2,000.01
19878802 - > 500.04
19878804 - > $1000
write the methods for lowest(), highest() stock until now.. the stream will continue.. whenever we call this function it should return the lowest value of the stock till now, and if we call the highest value function, it should return the highest value of stock till now..any python solutions please