Arrays | Leetcode 659 | Split Array Into Consecutive Subsequences

preview_player
Показать описание
Topic: Arrays
Time Complexity: O(n)
Code:

Leetcode:

*Note* I claim no rights to this question. All rights belong to Leetcode. If I'm reviewing a solution that was from another Leetcode user or Leetcode itself I will give credit below.

Hey there! Just wanted to let you know that some of the below links in this video description are affiliate links, which means that if you make a purchase through them, I may earn a small commission. Don't worry though, it doesn't cost you anything extra and it helps support this channel so I can continue to make more videos for you. Thank you so much for your support, and as always, all opinions are my own!

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

This is the first video among all, which could clearly explain to me the logic of the greedy approach used here and get convinced with the intuition.
1. Though i could not find any resources on the internet which could help me understand the process - How can I come up with such intuition.
2. But at least, this video was really helpful to get convinced for the algorithm. and then I was able to write a correct code my self.
Many Thanks.

Gurpreetkaur-wsfv
Автор

Thank you, couldn't understand those descriptions on leetcode..

cbd
Автор

great explanation! very clear and easy to understand! I'm Chinese so I usually watch videos explained in Chinese bc it's easy to understand, but I found yours is much clearer! Thank you

ptitm
Автор

Dude, great explanation. I was really confused by other explanations of this problem but this helped out alot!

bakguff
Автор

Do you have a contact? I want to talk to you

BackToBackSWE
Автор

Halfway through the video and I got an AC on leetcode just by understanding the way you explained the intuition! Thanks a lot

sparshsharma
Автор

Seriously, nice job
I saw a video of you some time ago, it's cool to see your evolution, and see you making them cleaner and better every time 👌

thomashirtz
Автор

Greatly explained. It's todays daily challenge on leetcode. 19 aug 2022.

fahadabdullah
Автор

Loved the explanation. Could not think of this approach.

manasdeora
Автор

This solution is tricky to get your head around at first but this is a great and concise explanation.

anderswb
Автор

Thank you brother, leetcode solution is very hard to understand, keep going on!

arthamsreenivas
Автор

You nailed the explaination part. Thanks!!

harshtyagi
Автор

great video as always! The best way to explain the intuition behind solving the problem, you always do best among all. Thanks a lot !

nagalakshmi
Автор

Can you please explain your taught process how you arrived at the solution, I mean how did you get to know you have to use an hypothetical map....

kollivenkatamadhukar
Автор

thanks man!! appreciate the help nice explanation too!!

ramanahlawat
Автор

What a beast explanation. You earned a new sub

asishcodes
Автор

Hey there! Just wanted to let you know that some of the links in this comment are affiliate links, which means that if you make a purchase through them, I may earn a small commission. Don't worry though, it doesn't cost you anything extra and it helps support this channel so I can continue to make more videos for you. Thank you so much for your support, and as always, all opinions are my own!

NideeshTerapalli
Автор

Best explanation for this problem. Thanks!

vishweshpujari
Автор

You explained it very clearly. Thanks a lot bro!

premraja
Автор

Excellent explanation with always sticking to the point.

shenth