Best Time To Buy & Sell Stock 1 (LeetCode 121) | Full solution with visuals and animation

preview_player
Показать описание
Stock Market is a wonderful opportunity to make some money but surely, you need to time things correctly. In the given problem we have defined prices and our aim is to maximize the profit. Watch the video to understand with animations and visuals how we can achieve a maximum profit in just one iteration.

Chapters:
00:00 - Intro
00:56 - Problem Statement and Description
03:24 - Brute Force Solution is not optimal
05:47 - Working step by step
11:38 - Dry-run of Code
13:31 - Final Thoughts

📚 Links to topics I talk about in the video:

📖 Reference Books:

🎥 My Recording Gear:

💻 Get Social 💻

#leetcode #programming #interview
Рекомендации по теме
Комментарии
Автор

Why are his lectures not having enough views? They are so good.

kyayaaromkar
Автор

How come your views are so low....its literally the best explanation i am getting on youtube ....already watched few of your videos...always thinking why you are so underrated.

movocode
Автор

This is the kind of teaching that truly makes a difference. The way you broke down the problem step by step and logically arrived at the solution is commendable. You didn’t just solve the problem; you taught us how to think critically and approach challenges methodically. Thank you for such insightful teaching!

iamrahulraj
Автор

Your clear explanation is so good. Clearly this video deserves more views, bless you!

sreeharsharaveendra
Автор

one of the best yet simple solution i have seen so far.

yashrajput
Автор

This explanation deserves more views and sharing with friends and colleagues. Simply brilliant

MythBuster_
Автор

So happen I randomly found you. Thank you for the content. You are definitely helping me understand the coding mindset.

zmonkey
Автор

we are learning 2 things from you in every video
1. obviously problem solving
2. how to communicate efficiently. the way you express your thoughts is phenomenal
your english is so simple and easy to understand
I also wants to become as good as you in communication skills.

vipulaggarwal
Автор

Mind Blowing Explaination, Very Clear and Consice

atmurisaimouli
Автор

better than more phd holder, great explanation

sourabhtiwari
Автор

Great explanation, hands down one of the best videos explaining problems from leetcode, I will suscribe and keep watching more. I actually was able to resolve the problem with your explanation and not by looking at your code, and I tried to watch the solution of this problem in other videos. Thanks for the video man.

TheDQR
Автор

Thanks I am learning from you, your explanation is very comfortable to me.

nrted
Автор

Thanks for explaining this approach in simple words

subhashpathak
Автор

Litreally the best tutor i have ever got! Thank you so damn much bro!

zeus
Автор

bhaiya whenever i got stuck in DSA you always saved me. i have watched number of videos of yours on DSA and always got the best solution always

manansarraf
Автор

such a clean explanation with visuals, thank you!

akankshajain
Автор

really appreciate your effort to explain and how to reach to solution step by steps. It is great help. keep it up!! thanks lot

anuradhae
Автор

You should be a tutor or teacher,
thanks for uploading :D

enriquegrageda
Автор

Really Good content... Best video lecture on Youtube. Keep doing good work

susmitapatil
Автор

great explanation with clear and concise way.

imrnu