音が流れない場合、再生を一時停止してもう一度再生してみて下さい。
ツール 
画像
Lit Code
143回再生
121. Best Time to Buy and Sell Stock #leetcode #python

Video URL:    • Best Time to Buy and Sell Stock - Lee...  
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

コメント