Тёмный

514. Freedom Trail | DP | Dijkstras | Top-Down | Bottom-Up | Bottom-Up Optimized 

Aryan Mittal
Подписаться 47 тыс.
Просмотров 3,8 тыс.
50% 1

In this video, I'll talk about how to solve Leetcode 514. Freedom Trail | DP | Dijkstras | Google | Top-Down | Bottom-Up | Bottom-Up Optimized
Let's Connect:
📱Discord (Join Community) : / discord
📝Linkedin: / aryan-mittal-0077
📸 Instagram: / ez.pz.dsa
💻 Twitter - / aryan_mittal007
🤖 Github: github.com/ary...
About Me:
I am Aryan Mittal - A Software Engineer in Goldman Sachs, Speaker, Creator & Educator. During my free time, I create programming education content on this channel & also how to use that to grow :)
✨ Hashtags ✨
#programming #Interviews #leetcode #faang #maang #datastructures #algorithms

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

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@ARYANMITTAL
@ARYANMITTAL 5 месяцев назад
Sorry, a lot of things happened in today's video & a lot of people came in frame too🥲🥹
@nothingmuch140
@nothingmuch140 5 месяцев назад
NO PROBLEM BRO✨✨
@shivamdashore6864
@shivamdashore6864 5 месяцев назад
The wait is over. Thanks, bro!
@prashant1049-y4h
@prashant1049-y4h 5 месяцев назад
The behavior you exhibited is not acceptable. Please be careful to avoid repeating it in the future.
@johnj171
@johnj171 2 месяца назад
@@prashant1049-y4h lamo 😂😂
@johnj171
@johnj171 2 месяца назад
hy thanks for explaining Great job
@aditimahabole1761
@aditimahabole1761 5 месяцев назад
bro how do you get time , like are you working in company also ? or you are dedicating you time to videos only ... just asking for time management.
@IndaramKumawat-sr2mk
@IndaramKumawat-sr2mk 5 месяцев назад
why did the greedy will not work well in this problem please will you explain it
@chetan.s.bandurkar2690
@chetan.s.bandurkar2690 5 месяцев назад
aj ke biweekly ke problem ke solution upload krna bhaiya 27-04-24 vale eke,,3rd and 4th specialy
@adityamehta543
@adityamehta543 5 месяцев назад
bro, please add the code solution in the description as well
@shivchauhan795
@shivchauhan795 5 месяцев назад
Hi, mujhe dp vaale question bohot jada mushkil lg rhe hain. Baaki questions trees, graph isse bohot easy lgte hain but dp hi nhi samajh aati. Aryan, can you help me tell me how can I overcome this. Please reply.
@gyanendrasingh6822
@gyanendrasingh6822 5 месяцев назад
practice more recursion problem so you will be easily understanding dp.
@rm0ndo
@rm0ndo 4 месяца назад
Quick note if you're doing the space optimized version and using Java... change prevDp = curDp to prevDp = curDp.clone()
@nikhilkumarpradhan4276
@nikhilkumarpradhan4276 5 месяцев назад
Dijkstras👏👏👏👏Thankuu bhaiya
@tasneemayham974
@tasneemayham974 5 месяцев назад
AMAZZINNNGGGG!!! The vid was 48 minutes. But I spent 3 hours analyzing and taking notes!! Thank you Aryan, bro!!
@Anonymous____________A721
@Anonymous____________A721 5 месяцев назад
Oh my god Thanks
@tanyaraj3129
@tanyaraj3129 5 месяцев назад
maksad nahi bhulna was something personal to say
@jatishay26
@jatishay26 5 месяцев назад
Amazing video. Keep it up
@akshaysoni5223
@akshaysoni5223 5 месяцев назад
Great Explanation 👍
@sanskardhyani4112
@sanskardhyani4112 5 месяцев назад
awesome video bhaiya
@ajayc815
@ajayc815 5 месяцев назад
Understood
@aniketsinha101
@aniketsinha101 5 месяцев назад
Thanks for making complicated problem more complicated then it seems. I mean i always suggest, not to get spooked by hard problem. First will be not to think dynamic programming for hard problem, Start with recursion, then memoize, and then tabulate. Its fine, if you are getting TLE, or its below average solution. Build a recursive solution -> if the index is greater than key, we return 0 your helper function will look like this (String ring, String key, int pointer, int index) index will be used for traversal for the next character in the key. pointer indicates the current location in the ring string assume step to be maximum. we will put a for loop to traverse the ring. (i to ring size) If the ring index is equal to key index, then steps will be minimum of steps or, abs(i-ptr), or n- abs(i-ptr)+1+ call the recursion with pointer,index +1. return steps at the end at the end just create a dp, add two line code to memoize it
@aastikofficial6100
@aastikofficial6100 5 месяцев назад
ys you are right
@aastikofficial6100
@aastikofficial6100 5 месяцев назад
Bro dont go for longer videos for watch time you can simply explain it bhai tum over kr dete ho complicated ko or complicated kr dete ho agr simply smghaoge jyada confuse nhi kroge to apne aap views aayenge tum hr video ko lamba kichte ho or complicated krte rhte ho ig i am right if not correct me here
@VishalKumar-lw3yh
@VishalKumar-lw3yh 5 месяцев назад
go and watch solution which is 15 min long and dry run on a example then code it and u rote it. u know why does it take 40 plus min cuz he gives intution, he proves why a solution works and other not, then comes to the solution.
@aastikofficial6100
@aastikofficial6100 5 месяцев назад
@@VishalKumar-lw3yh ya i already watched it and code it morever easy to understand
@vinaychauhan2110
@vinaychauhan2110 5 месяцев назад
Because it is necessary for noob like me😅
@AYJ959
@AYJ959 5 месяцев назад
Its easy to make a 15 min video and get more views and also he explained 4 solutions. what you want 4 approaches of dp & graph in 15 min video?
@satwiktatikonda764
@satwiktatikonda764 5 месяцев назад
thanks for explaining wch loop comes first ...we usually write state1 in memo as loop1 and state2 as loop 2 but here its not the case
Далее
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32
How I landed my Dream Job as a Software Engineer
24:40
Просмотров 1,8 тыс.
Microservices are Technical Debt
31:59
Просмотров 329 тыс.
Freedom Trail - Leetcode 514 - Python
25:18
Просмотров 14 тыс.
1110. Delete Nodes And Return Forest | DFS | Tree
12:33
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32