FresherFresher (0–1 yrs)CodingPythonAmazonBloomberg
Best Time to Buy and Sell Stock
You may complete at most one buy and one later sell. Return maximum profit, or 0 if no profit is possible.
Answers use simple, clear English.
Time: O(n)Space: O(1)
Confidence
#array#greedy#blind75