+2Best time to buy and sell stockCodingGiven a list of daily prices for one asset, return the most profit you can make. First allow any number of buy-then-sell trades, holding at most one share at a time.
Last asked Nov 2026
+2
+1

+1
+2
+3
+1





+1





+1






+2




+1












+2


















+2










+1





+1
+1



+2





+1
+1











+2



































+1


+1















+2

+1

