Edit Distance | Dynamic Programming | LeetCode 72 | C++, Java, Python

  Рет қаралды 9,942

Knowledge Center

Knowledge Center

Күн бұрын

Пікірлер: 28
@alassanedialllo9598
@alassanedialllo9598 4 жыл бұрын
I am amazed by the clarity in which you teach. if you continue to upload such excellent contains there is no doubt for your success. You are amazing bro.
@niteshbagla6045
@niteshbagla6045 4 жыл бұрын
Really u taught better then my proffesional AD teacher, especially the delete, substitute and insert part..... now its easy to remember and didn't need to learn it,,, THANKS
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks.
@rajeshg1737
@rajeshg1737 4 жыл бұрын
The way you explain the solution is very clear. I watched till ~7 mins and I tried to code myself and got it right whereas I was initially wondering how to start.
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Great. Good job. I recommend this way to others as well.
@crankyinmv
@crankyinmv 4 жыл бұрын
Yup, this is the one which kept me from finishing the May challenge. Really liked your clear explanation. It's obvious at this point I was taking the wrong approach.
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Glad it was helpful!
@saswatsahoo5038
@saswatsahoo5038 3 жыл бұрын
great explanation and hint! I watched upto 6:38 and was able to solve it...
@KnowledgeCenter
@KnowledgeCenter 3 жыл бұрын
Glad it was helpful.
@srijansaini6277
@srijansaini6277 4 жыл бұрын
Really your way of describing is amazing!!
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks a lot 😊
@ravinalawade6842
@ravinalawade6842 4 жыл бұрын
nice explanation of recursive solution and then converting it into DP solution
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks.
@JardaniJovonovich192
@JardaniJovonovich192 4 жыл бұрын
How did you get an idea to directly jump to last characters and then start comparing and then apply DP ? By reading the question itself did you understand that this is a DP problem ? How do we know that we have to follow DP approach to any problem ?
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Breaking the problem into smaller sub-problems should always be in your mind. For problems dealing with 2 strings, How would you reduce your problem size? Either from front or end. The goodness with end is that, we will need to keep track of just end, beginning is implicitly 0. That's how my approach is how to reduce the problem size. DP idea will automatically come, when you see that, the main function can be written in recursive form in terms of smaller subproblems. Then you should check if there are overlaps in the smaller problems. That's it. We need to avoid recomputing same things. For this problem specifically, experience of solving Longest Common Subsequence problem would help.
@j8nya
@j8nya 2 жыл бұрын
great!! but how to code explanation like horse->rorse (replace'h' with 'r')......can u help me to code🙏🙏🙏🙏
@yangiiu4347
@yangiiu4347 4 жыл бұрын
Love your videos, follow you with LeetCode problems. BTW in python min(3, 5, 2...) is legal.
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Cool, thanks for the info. That would save some effort.
@srikantsharma6430
@srikantsharma6430 4 жыл бұрын
Nice explanation!
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks!
@ghumakkad_yogi
@ghumakkad_yogi 4 жыл бұрын
Can you made video on Google kickstart challenges also?
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Sure. Will look into it. I was not aware of it.
@manishpanwar2517
@manishpanwar2517 4 жыл бұрын
Loved it
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks.
@varunagarwal28
@varunagarwal28 4 жыл бұрын
Awesome explanation
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Glad it was helpful!
@DD-ko4dt
@DD-ko4dt 4 жыл бұрын
Add to Everyday Checklist: Knowledge Center KZbin channel
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Thanks.
Edit Distance - Dynamic Programming - Leetcode 72 - Python
21:00
Edit Distance | Leetcode 72 | DP
21:07
Ayushi Sharma
Рет қаралды 2,1 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
the TRUTH about C++ (is it worth your time?)
3:17
Low Level
Рет қаралды 833 М.
Minimum Cost For Tickets | LeetCode 983 | C++, Java, Python
18:38
Knowledge Center
Рет қаралды 14 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 53 М.
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
DP 33. Edit Distance | Recursive to 1D Array Optimised Solution 🔥
37:39
Data Structures Explained for Beginners - How I Wish I was Taught
17:06
Internet Made Coder
Рет қаралды 626 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 863 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН