Candy | Leetcode June Challenge | Leetcode 135 | Approach + Code | C++ | Python | Hindi
Vložit
- čas přidán 26. 06. 2021
- C++ Code Link : github.com/Ayu-99/Data-Struct...
Python Code Link: github.com/Ayu-99/Data-Struct...
Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)
#leetcode
#leetcodeJuneChallenge
#interviewpreparation
Candy solution
Candy Leetcode
Candy C++
Candy C++ Hindi
Candy Hindi
Checkout the series: 🔥🔥🔥
👉 Recursion : • Recursion
👉 Stack and Queue : • Stack And Queue
👉 Greedy : • Greedy
👉 Leetcode contests : • Leetcode contests
👉 Leetcode June Challenge : • Leetcode June Challenge
LIKE | SHARE | SUBSCRIBE 🔥🔥😊
Your voice is so pleasing to ears
Thank you 😊
Thank you very much ma'am i wish I could show you my number of attempts 😅but one more thing i only took a basic idea about this problem although the category of this question is hard according to leetcode but after watching your explanation till 4 to 5 min i got the idea and solved it easily 😅 thanks 🎉
Thank you Abhishek, means a lot 😊✌🏻
Nice Explanation!
Thank you Amanpreet :)
like going for least rating .. give them 1 candy then go to rating that is more than previous and give them max (left and right) +1 . and so on?
explained at its best ... love it
Thank you Santosh 😊
this can also be done in a single traversal ?
Thanks di bilkul clear hogya !!!
Welcome! glad it was helpful :)
greatt explanation of leetcode hard question!!
thank you, glad it was helpful :)
thanks didi
Welcome Anirudh :)
Mam you are so great ,the way you are teaching is far better than the college professor
can you please tell me from which college you are
Thank you Tushar :)
I’m from Guru Nanak Dev Engineering college
Mam please make a video on Which Subjects we should bstudy for placement.
I am in 2nd year in btech IT.
Yes, I will make it soon 🙂
Whats the need of candy condition?
why their is a candy condition .....why you comparing candy ??
kya pyaari awaz h
I have a doubt!.. You are doing 2 traversal.. First from left to right and then from right to left... Can we do in a single traversal? (That is only from left right and comparing neighbors)
no, it won't work using single traversal as the value depends on neighbors and those value can change after. Try to do it with test case, it will be more clear.
First of all it doesn't work. But why are u thinking for single traversal. The tc will remains same in both cases.
We all think that single or two traversal time complexity remains same but in reality two traversals takes more time and it's so small that we doesn't count it in theory!.. It has some delay!.. Secondly I currently was interviewed in Amazon... They were asking everything in single traversal though 2 traversals also take same time
And they only told me the reason!.. Never think 2 traversals and single traversal takes same time!.. In theory its okay but in practical life it's not
@@rishavagarwal6531 did they ask you the same question?
didi ye approach click kese kari 🥲???
Are u a student or doing job?
I am in final year doing internship
Which company if it's comfortable to ask?
@@rishavagarwal6531 you can connect with me on LinkedIn : www.linkedin.com/in/ayushi-sharma-8a285a185/