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

Best Time to Buy and Sell Stock(LeetCode 121) | Neetcode 15 / 150 | Bharath Chandra (Telugu)

Hello guys, cheers to another piece of learning. Today I talked about the "Best Time to Buy and Sell Stock" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it.

In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of the logic?

Link to Two Pointer video -    • Hashsets and HashMaps | Why and where do w...  

Link to the problem - leetcode.com/problems/best-time-to-buy-and-sell-st…

Link to Neetcode 150 - neetcode.io/practice=

Regular updates from me on Discord, Insta and Telegram. I post job notifications of telegram and discord

Insta - www.instagram.com/bharathh_chandraa/
Telegram - t.me/thebharathchandra
Discord - discord.gg/tvFcRtEPZK
LinkedIn - www.linkedin.com/in/lokesh-bharath-chandra-putnam/

00: 00 - Introduction and Problem Statement
02: 23 - Wrong Approach
03: 22 - Brute Force
07: 57 - Using Two Pointer/ Sliding Window
13: 24 - Pseudocode

コメント