Загрузка...

Leetcode: 121 | Best Time to Buy and Sell Stock

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 different day in the future to sell that stock.
https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/

Ready to crush your next coding interview? This video covers the popular Best Time to Buy and Sell Stock Problem and we'll walk you through step-by-step on how to solve it. Get ready to impress!

Видео Leetcode: 121 | Best Time to Buy and Sell Stock канала AISH KHUSHI
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять