Best Time to Buy and Sell Stock II
CodingOnsiteSoftware EngineerReported Aug, 2026
Company question banks are included with the Insider plan.
You are given an integer array prices where prices[i] is the price of a given stock on the ith day.
On each day, you may decide to buy and/or sell the stock. You can only hold at most one...