Could you explain what was your though process for coming up with this algorithm? Lets say this was an interview how would you approach this problem? I tried to do it under 45 mins but I couldn't. I couldn't even solve the problem until I saw your video so it would really be helpful if I could get your insight towards approaching these kind of problems. Thanks. Your videos are great.
Great Explanation. I watched three videos before this video for this question.
Glad you liked it !!
I hope to see this channel as a one-stop for all LC questions! Nice explanation.
Thank you for the compliment!! 😊
Best video I found for this problem.Nice explanation.Keep up the good work.
Thanks !! 🙂
If you are interested in Geeksforgeeks courses. do check out our latest giveaway!! 🙂
The best explanation of this problem, Thanks!
Simple concise and elegant
Thank you!!
If the length of num array was 1. Wouldn't k have to be 1? If in starts as 2, wouldn't the value for k be wrong?
the first line of code has precondition which are used to remove the case mentioned by you (nums.length < 3).
Could you explain what was your though process for coming up with this algorithm? Lets say this was an interview how would you approach this problem? I tried to do it under 45 mins but I couldn't. I couldn't even solve the problem until I saw your video so it would really be helpful if I could get your insight towards approaching these kind of problems. Thanks. Your videos are great.
what if the first 3 elements were 0,1,2,3,3,3 and so on? Does your logic still work?
best solution ever. thank you
Thanks!!
Super cool solution!
Thankyou!! 👍👍
Thank you!! This is very clear!
Best one I think
but actually what happen next after 2
Glad it helped. Please subscribe to the channel.
sorry I dont understand line 6... what does in represent and why are we minusing 2?
best explanation !!!
Glad it was helpful!
Don't forget to share and subscribe!!
Thank you
Glad it was helpful!
Don't forget to share and subscribe!!
@@AlgorithmsMadeEasy you can also subscribe to our youtube channel :) I also make videos.
Thanks!
Nice work
👌👌
nicely explained ..
Thanks Meenu!! 🙂
Thank you maam :)
Glad it was helpful!
Don't forget to share and subscribe!!
NITIDO MI NEGRA..
worst ever explaination
What if the array contains 1,1,2 will it work can u explain 😅