Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
3いいね 143回再生

121. Best Time to Buy and Sell Stock #leetcode #python

Video URL:    • Best Time to Buy and Sell Stock - Leetcode...  
Leetcode Daily Challenge - February 25, 2023
Leetcode 121. Best Time to Buy and Sell Stock - Python Solution

Solution URL: leetcode.com/problems/best-time-to-buy-and-sell-st…

Problem Statement
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.

Return the maximum profit you can achieve from this transaction. If you cannot achieve any profit, return 0.

Support the channel by subscribing and hitting the like button.

Litcode Playlist: bit.ly/3uGBSHx

LinkedIn: www.linkedin.com/in/sachin-singh-ss31/
Email: sachinsingh31@outlook.com

#leetcode #leetcodesolution #leetcodedailychallenge #codingpractice #learnpython #python #googleinterview #amazoninterviewpreparation #stockmarket #stocks #besttimetoinvest

コメント