Leetcode 0121. Best Time to Buy and Sell Stock
Posted on Thu 26 December 2024 in Leetcode • Tagged with dp-stock
Question Link : https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
Difficulty: Easy
Premium: False
Question
You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day to buy one stock and choosing a …
Continue reading