No video

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

  Рет қаралды 27,708

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 81
@yashrajput8566
@yashrajput8566 4 ай бұрын
one of the best yet simple solution i have seen so far.
@sreeharsharaveendra289
@sreeharsharaveendra289 8 ай бұрын
Your clear explanation is so good. Clearly this video deserves more views, bless you!
@nikoo28
@nikoo28 7 ай бұрын
thanks for your appreciation and motivation :)
@zmonkey111
@zmonkey111 Жыл бұрын
So happen I randomly found you. Thank you for the content. You are definitely helping me understand the coding mindset.
@youtubeofomkar
@youtubeofomkar 7 ай бұрын
Why are his lectures not having enough views? They are so good.
@GeetainSaar
@GeetainSaar 2 ай бұрын
Thumbnail
@Homelander_30
@Homelander_30 Ай бұрын
They love only clickbait and trends. He is treasure, hope he start DSA course, I will buy at any cost.
@patelg6759
@patelg6759 Ай бұрын
​@@GeetainSaar obviously this is the main reason but once you watch you'll search NIKIL lohia
@movocode
@movocode 5 ай бұрын
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.
@vipulaggarwal8518
@vipulaggarwal8518 22 күн бұрын
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.
@MythBuster28_10
@MythBuster28_10 5 ай бұрын
This explanation deserves more views and sharing with friends and colleagues. Simply brilliant
@imrn4u
@imrn4u 3 күн бұрын
great explanation with clear and concise way.
@atmurisaimouli4697
@atmurisaimouli4697 7 ай бұрын
Mind Blowing Explaination , Very Clear and Consice
@sourabhtiwari5137
@sourabhtiwari5137 7 ай бұрын
better than more phd holder, great explanation
@anubratsahoo447
@anubratsahoo447 Ай бұрын
Underated teacher
@harshitagoswami989
@harshitagoswami989 Жыл бұрын
You are a gem!
@manansarraf73
@manansarraf73 2 ай бұрын
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
@nikoo28
@nikoo28 2 ай бұрын
It's my pleasure
@akankshajain3997
@akankshajain3997 10 ай бұрын
such a clean explanation with visuals, thank you!
@nikoo28
@nikoo28 9 ай бұрын
so happy you like them
@anuradhae9146
@anuradhae9146 Жыл бұрын
really appreciate your effort to explain and how to reach to solution step by steps. It is great help. keep it up!! thanks lot
@nikoo28
@nikoo28 Жыл бұрын
you are very welcome!!
@riyarai9226
@riyarai9226 2 ай бұрын
Thank you so much sir, this explanation was super helpful.
@chandanaarvapally
@chandanaarvapally Ай бұрын
You are toooo good! Thanks a lot sir
@enriquegrageda
@enriquegrageda 6 ай бұрын
You should be a tutor or teacher, thanks for uploading :D
@VikashSingh-sf2xp
@VikashSingh-sf2xp 7 күн бұрын
very nice explanation.
@MoralStories292
@MoralStories292 3 ай бұрын
the best explanation❤❤❤❤
@shivesh.mishra
@shivesh.mishra Ай бұрын
As usual I respect my teachers most but. Uh got the respect from it's peak.📈❤
@user-gw2dz6il1n
@user-gw2dz6il1n 2 ай бұрын
great understanding
@ajayupadhyay4964
@ajayupadhyay4964 Жыл бұрын
very underrated channel
@susanjoshi5948
@susanjoshi5948 11 күн бұрын
You are awesome!
@susmitapatil4847
@susmitapatil4847 6 ай бұрын
Really Good content... Best video lecture on KZfaq. Keep doing good work
@bhawnachauhan4375
@bhawnachauhan4375 7 ай бұрын
You explained so well😊
@ankitajha3962
@ankitajha3962 24 күн бұрын
Was able to code on my own
@kirthananambiar8873
@kirthananambiar8873 Жыл бұрын
Thank you for your great explanation..it will be great if you solve hackerank array manipulation problem
@tayyabsami258
@tayyabsami258 5 ай бұрын
Brother your explanation is love
@xzcgvxzcvxzcvxcv
@xzcgvxzcvxzcvxcv 7 ай бұрын
It's more better explanation than neetcode) thx
@rohitrajsingh4638
@rohitrajsingh4638 7 ай бұрын
best explanation that i found
@hoang640
@hoang640 10 ай бұрын
Very clear explaination Thank you so much
@ashok2089
@ashok2089 Ай бұрын
Best explanation..thanks!
@vpvpsilly2927
@vpvpsilly2927 Жыл бұрын
great explanation....thank you sir
@lymmontijo87
@lymmontijo87 10 ай бұрын
Thank you so much, this explanation was super helpful.
@-IT-ARGHYASINGHA
@-IT-ARGHYASINGHA 5 ай бұрын
thank you very much sir nicely explained
@iftekharanam8980
@iftekharanam8980 5 ай бұрын
Thanks man. Good coding.
@niom_002
@niom_002 6 ай бұрын
Great explanation ❤
@quantisticnumbers2633
@quantisticnumbers2633 Жыл бұрын
Thanks for the video
@aniketrawat3224
@aniketrawat3224 Жыл бұрын
Thanks, it was really helpfull...
@isabelgraciano9282
@isabelgraciano9282 Жыл бұрын
great video and very well explained 😃
@sudhadevi6692
@sudhadevi6692 Жыл бұрын
Bhaiya tussi GREAT ho!!!🎉
@nikoo28
@nikoo28 Жыл бұрын
you are great too :D
@mohammadfahad6076
@mohammadfahad6076 11 ай бұрын
great explanation👍
@mithic
@mithic 21 күн бұрын
brother i think even if we remove the else block and write update the currentProfit directly it should still work
@yaswanthreddy2623
@yaswanthreddy2623 6 ай бұрын
Thankyou sir.
@manishasharma434
@manishasharma434 Жыл бұрын
Pls do cover all the parts of buy and sell problem if possible
@nikoo28
@nikoo28 Жыл бұрын
yep...I do have that on my mind 😄
@hariboy123
@hariboy123 Жыл бұрын
i love your english
@everyontech2716
@everyontech2716 Жыл бұрын
well explained
@subee128
@subee128 7 ай бұрын
Thanks
@nikoo28
@nikoo28 7 ай бұрын
Welcome
@TrungNguyen-eo7qz
@TrungNguyen-eo7qz 5 ай бұрын
How to find and return the indices of best day to buy and best day to sell with max profit?
@nikoo28
@nikoo28 5 ай бұрын
that is another problem...and will cover it at a later point in time
@kidoo1567
@kidoo1567 11 ай бұрын
U are looking like that guy who host the show "the mad" in pogo❤
@nikoo28
@nikoo28 10 ай бұрын
haha...you mean rob?
@raah1634
@raah1634 5 ай бұрын
@akjha627
@akjha627 6 ай бұрын
I wrote the code myself and I am confused with the test cases...[3,2,6,5,0,3] expects the output to be 4 whereas [2,1,2,1,0,1,2] expects output to be 2. So in first testcase, the 0 price is not valid whereas in the 2nd, 0 buy price is valid ??
@nikoo28
@nikoo28 5 ай бұрын
try debugging and you will be able to follow along the step you are missing
@rajnishsingh2864
@rajnishsingh2864 Жыл бұрын
👍
@asifkhanak7792
@asifkhanak7792 8 ай бұрын
what is the name of this algorithm?
@nikoo28
@nikoo28 8 ай бұрын
Kadane's algorithm
@adityathakur9714
@adityathakur9714 8 ай бұрын
Sir please write code also at the last by yourself
@nikoo28
@nikoo28 8 ай бұрын
I want to focus on the problem solving part rather than the code part. Once the algorithm is clear to you...writing the code in any language isn't hard at all. Every good company you interview for...they will only be interested to judge if you are able to think logically. Plus, I also provide a production level code at the end with a dry run, full code and test cases on Github as well. So my question to you is, did you face any problems while understanding how to solve?
@adityathakur9714
@adityathakur9714 8 ай бұрын
@@nikoo28 No bhaiyaa the thing is I just started coding I understand the logic very well with your explanation but I'm not able to write in a limited time and bhaiya you explain so well that I understand the logic easily.
@nikoo28
@nikoo28 8 ай бұрын
If you have just started your coding journey…all the more reason to try and write the code yourself…follow the logic and debug along the way. Pause and take your time. No rush to just complete the number of problems.
@adityathakur9714
@adityathakur9714 8 ай бұрын
@@nikoo28 okk bhaiya i will give my best
@pavankumarpadamati8606
@pavankumarpadamati8606 7 ай бұрын
nice explanation ...keep it bro🤩
@nikoo28
@nikoo28 6 ай бұрын
Thank you, I will
@riyarai9226
@riyarai9226 2 ай бұрын
Thank you so much sir, this explanation was super helpful.
DP 36. Buy and Sell Stock - II | Recursion to Space Optimisation
35:34
take U forward
Рет қаралды 221 М.
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 23 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
NVIDIA Needs to STOP
11:35
Linus Tech Tips
Рет қаралды 864 М.
Best Time to Buy and Sell Stock III | Leetcode #123
35:40
Techdose
Рет қаралды 68 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 642 М.
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 453 М.
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН