Тёмный

Candies | HackerRank | Algorithms | Greedy | Dynamic Programming 

Coding Cart
Подписаться 12 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 32   
@paulbh4953
@paulbh4953 4 года назад
I was trying to "brute force" this with a ton of if/else statements... Just your explanation of how to approach the problem alone and I could solve it! Thank you and great job!
@omingole7304
@omingole7304 2 года назад
same here man!
@anoops7974
@anoops7974 5 месяцев назад
Thank you so much. You saved my day. Great explanation and examples.
@_mandeep_kumar.
@_mandeep_kumar. 4 года назад
Thanks for explaining this problem. ..... I am waiting for it....
@codingcart
@codingcart 4 года назад
Most welcome
@rudreshmishra3041
@rudreshmishra3041 4 года назад
pehle to mujhe laga kya bta rha hai lekin baad me jab corner case explain kiya to ek dam mast bro keep doing
@codingcart
@codingcart 4 года назад
Ya never judge a book before reading 😁
@rajeshpednekar9317
@rajeshpednekar9317 2 года назад
A very clear and simple explanation. Thank you.
@ayushyacodes
@ayushyacodes 5 месяцев назад
On what grounds we decide that we need to travel in both the directions? i.e. forward as well as backwards? Because for this scenario of {5,4,3,2,1} if we consider then only 9 candies needs to be distributed instead of 15. I am not getting this part! 5,4,3,2,1 (Kids) 1,1,1,1,1 (Initial value of candies) 2,1, (1st iteration) 2,2,1 2,2,2,1, 2,2,2,2,1
@NehaKumari-tt1fn
@NehaKumari-tt1fn 4 года назад
👍🏻 good explanation
@codingcart
@codingcart 4 года назад
Glad you liked it
@Firecloak
@Firecloak 4 года назад
Thank you. Clear explanation. this helped me a lot
@codingcart
@codingcart 4 года назад
Thanks :) Keep Learning Keep Supporting
@venkatarakesh1698
@venkatarakesh1698 3 года назад
Good explanation,loved your approach
@Setssquare
@Setssquare 3 года назад
sir i have a doubt how accesing element of dict is faster than lists.......
@codingcart
@codingcart 3 года назад
Coz in dictionary we use key and value pair ..and for searching on basis of key it's O(1).
@naturemusic2285
@naturemusic2285 4 года назад
Nice
@codingcart
@codingcart 4 года назад
Thanks
@averagesomebodynobody
@averagesomebodynobody 3 года назад
can you elaborate on the greedy approach towards this problem .
@ammararazzaq132
@ammararazzaq132 4 года назад
Hi Can you please make a video on Abbreviation problem in dynamic programming section as well?
@codingcart
@codingcart 4 года назад
Next series is on Dynamic programming. You will be notified soon.
@devanshusachdev7367
@devanshusachdev7367 3 года назад
Thanks a lot, bro. You made my day! : )
@codingcart
@codingcart 3 года назад
Glad to hear that!
@tzutalkinginkawa8697
@tzutalkinginkawa8697 3 года назад
love your solution!
@chiragkumar3354
@chiragkumar3354 4 года назад
Could you please explain how dynamic programming was used here ?
@codingcart
@codingcart 4 года назад
Hi chirag, in interview prepration kit it was in dynamic section.. I have written same topic here but if you go through the problem you find its not a dynamic one ... You can solve with dynamic approach and feel free to post your answer so that other can get benefitted too.
@chiragkumar3354
@chiragkumar3354 4 года назад
@@codingcart Ok, Thanks for reply!
@ishankumarsethi8773
@ishankumarsethi8773 4 года назад
Please solve hackerrank goodland electricity problem
@codingcart
@codingcart 4 года назад
Sure. stay connected
@giorgi23
@giorgi23 4 года назад
What a good explanation!
@codingcart
@codingcart 3 года назад
Glad it was helpful!
@bhubeshsr6281
@bhubeshsr6281 3 года назад
awsm
Далее
Marc's Cakewalk | Greedy | HackerRank | Interview
9:41
ИСТОРИЯ ПРО ШТАНЫ #shorts
00:32
Просмотров 300 тыс.
Abbreviation | HackerRank (Python)
28:26
Просмотров 2,5 тыс.
182 - Candies | Greedy | Hackerrank Solution | Python
12:42
Viral Video of a Man's Crazy Job Interview
16:02
Просмотров 1,5 млн
The TRIPLE FOLDING phone has a Problem.
12:54
Просмотров 1,9 млн
How I Got Good at Coding Interviews
6:29
Просмотров 1,7 млн
Candy - Leetcode 135 - Python
13:45
Просмотров 31 тыс.
Go Has Exceptions??
16:58
Просмотров 73 тыс.
ИСТОРИЯ ПРО ШТАНЫ #shorts
00:32
Просмотров 300 тыс.