Drill Queue

Best Time to Buy and Sell Stock

Challenge #4

EASY Given an array prices where prices[i] is the price of a stock on day i, maximize profit. Edit

Description

Max profit from single stock trade.


Given an array prices where prices[i] is the price of a stock on day i, maximize profit.