Home page
Telegram bot

Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10




Video quality The size Download

Information Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10


Title :  Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10
Lasting :   27.56
Date of publication :  
Views :   181 rb


Frames Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10





Description Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10



Comments Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10



@sujitachaudhary7089
what problems do I need to practice first before solving this?
Comment from : @sujitachaudhary7089


@AbhiudaiShahi
One of your best video ❤
Comment from : @AbhiudaiShahi


@alifrahman7099
goat
Comment from : @alifrahman7099


@ShubhamDineshBafna-t5t
should be take not take , and only say star when there is a star, felt like there was an error in the explanation at 11th minute
Comment from : @ShubhamDineshBafna-t5t


@Box-iq1zj
F**king genius!
Comment from : @Box-iq1zj


@an4220
had to watch it twice it just clears concept can't thank you enough Neet
Comment from : @an4220


@gyaan3101
03:20 * and empty string should return False
Comment from : @gyaan3101


@manivannansivaraj7324
Loved your solution, Neet I was breaking my head to get it working Thanks for the neat explanation and a great walkthrough :)
Comment from : @manivannansivaraj7324


@mfaani
Thanks!
Comment from : @mfaani


@cchexcode
I'd always tend to avoid using "i" and "j" because they look very similar in most fonts Use "i" and "k" to improve readability -> remember: code is read heavy
Comment from : @cchexcode


@paneercheeseparatha
Thanks its a pretty difficult problem
Comment from : @paneercheeseparatha


@akhma102
Thank you, Neet! Great Explanation!
Comment from : @akhma102


@michaelc3781
Thanks
Comment from : @michaelc3781


@chizhang9135
solve in one linebrreturn bool(refullmatch(p, s))
Comment from : @chizhang9135


@for_whom_the_bell_tolls
Wow man your explanation is just fantastic!
Comment from : @for_whom_the_bell_tolls


@nishapaila7870
just a clean explanation amazing
Comment from : @nishapaila7870


@kocot
Instead of optimizing it with cache, I've got an almost identical result (1300ms->50ms) by simply ensuring you don't process subsequent stars So if there is a*a*a*, you'd only check it once Now the cache seems obvious, but that addressed directly the most compute intensive cases :) Funny to see how it's same efficient Using both would probably improve it even further
Comment from : @kocot


@samridhshubham8109
GOAT
Comment from : @samridhshubham8109


@Plutonium_357
That's the ugliest solution as well as finest understanding theoritical video
Comment from : @Plutonium_357


@saadkhan4049
You made it look so simple Thank you!
Comment from : @saadkhan4049


@juliramoos
Perfect explanation! Thank you And the code looks good
Comment from : @juliramoos


@sameerkumar-uq2ic
how did he changed the leetcode code editor to this color
Comment from : @sameerkumar-uq2ic


@rahuljain281
What an explanation sir ji❤ After this, I was able to solve wildcard matching by myself
Comment from : @rahuljain281


@iharshgarg
i dont think so if memoization was actually ever used
Comment from : @iharshgarg


@iharshgarg
i checked so many videos of this problem but there's simply no compedition to you bro keep the neet work up bro/>
Comment from : @iharshgarg


@purnimadas768
Thank you for the very good video
Comment from : @purnimadas768


@Team_sih
but I got a doubt how are we looping the string if we ae not using any loop like it will check all the conditions for 1 time but how is it looping ??? can anyone help?
Comment from : @Team_sih


@jonathanandres1657
Great explanation! :) @NeetCode what tool do you use to write and draw ? brAny specific brand, I'm looking for this kind of tools
Comment from : @jonathanandres1657


@emretekmen1602
you need to explain how the cache actually saves time How does storing the indexes along with a bool value save any time?
Comment from : @emretekmen1602


@santoshr4212
Thanks alot for helping me understand the issue, I was doing the bottom up and solution was failing in leetcode on last 2 test cases After watching this video I understood we need to do bound check on index "i" - stupid of me missing such a basic thing Now solution worked
Comment from : @santoshr4212


@tanaysingh5348
the question description feels really incomplete without your explanation , thanks a lot
Comment from : @tanaysingh5348


@sauravchandra10
If there is one thing which I am not sure is how will the subproblems repeat If anyone has any intuitive way, pls let me know
Comment from : @sauravchandra10


@sauravchandra10
You make hard problems very easy Thanks for explaining
Comment from : @sauravchandra10


@Chirayu19
I think the time complexity would be O(N^2M) and not O(N*M) since we have to iterate through the s in case of "*" Please do correct me if I am wrong Thanks!
Comment from : @Chirayu19


@VishalKumar-kr9me
How easy you make a hard problem is unbelievable !!!!!! Salute to you
Comment from : @VishalKumar-kr9me


@MutuallyBro
Very good explanation, love the channel!
Comment from : @MutuallyBro


@meto4545
18:19
Comment from : @meto4545


@aldogutierrez8240
Very good explanation thanks!
Comment from : @aldogutierrez8240


@jacques-dev
For anyone getting confused with the solution to this problem, I found the bottom-up approach to be much more intuitive Just my experience, I know everyone is different
Comment from : @jacques-dev


@ashkankipati
Could you explain wildcard matching, a similar problem to this one?
Comment from : @ashkankipati


@comander47
this problem took me soo much time to understand, thank you dude
Comment from : @comander47


@axay30
this is called Codeagasm Mind blowing
Comment from : @axay30


@kaartiknagarajan5009
I've recoded your solution and it's brilliant However, I've been trying to follow the stack trace of the program execution to convince myself when the first if statement would execute "if (i, j) in cache: return cache([i, j])" I know it does because I tried removing it and got a TLE error o Leetcode, but I don't see when it would be needed as we always progress into a deeper DFS and cache Would appreciate an explanation if you could please! Thank you
Comment from : @kaartiknagarajan5009


@連尼克
not understand why we need a cache dictionary
Comment from : @連尼克


@zl7460
Thank you for the explanation I thought according to the problem statement, 'c*' cannot be empty, which was very misleading by Leetcode
Comment from : @zl7460


@mirshodoripov1035
can you solve it using only re module in python?
Comment from : @mirshodoripov1035


@pranavkashyap8610
The dramatic decrease in time taken to execute after using cache surprised me brThanks for the explanation and code
Comment from : @pranavkashyap8610


@JameS00989
Super awesome explanation NeetCode 🎉Thanku
Comment from : @JameS00989


@taroserigano6546
Super thanks for this!
Comment from : @taroserigano6546


@袁丽君-s7c
This explanation makes the whole process clean and simple
Comment from : @袁丽君-s7c


@nagasivakrishna5660
man love ur explanation ,great man ,no words love u man
Comment from : @nagasivakrishna5660


@chongwen
great explanation without sophisticate dp, can't thanks more!
Comment from : @chongwen


@pulakammalathy6968
Thank you so much
Comment from : @pulakammalathy6968


@Whatthetrash
Thank you so much for this After weeks (!) of trying to solve this problem on my own, I decided to look it up and lo and behold -- the solution involves a bunch of stuff that I have never heard of I feel a bit better (and I need to learn about Dynamic Programming now) >_< Thanks again for the elegant, succinct solution
Comment from : @Whatthetrash


@jimwu3856
To be honest, I never would have even guessed that this is a Dynamic Programming problem Once you started explaining the decision tree, it ALL made sense Thanks for teaching me something new!
Comment from : @jimwu3856


@pranavsharma7479
thnks bro i was not getting how to solve this , this is same as wildcard matching with a twist
Comment from : @pranavsharma7479


@thisissheraf
Appreciate your explanation thank you
Comment from : @thisissheraf


@notsadsisyphus6224
i seriously love your video i swear you dont waste time i love it
Comment from : @notsadsisyphus6224


@ruizhu5295
I really appreciate your explanation, so clean, so logical!
Comment from : @ruizhu5295


@scottchen2094
Can someone explain why we dont add cache for line 11 & line 13 the two base cases?
Comment from : @scottchen2094


@blackychauhan
recursion & caching 😊
Comment from : @blackychauhan


@sumeetchawla3545
Amazing explanation Really thankful for your great efforts :)
Comment from : @sumeetchawla3545


@saikat511
will it work with s: aaa, p: aab*a*c*a ??
Comment from : @saikat511


@buttercup5029
I was struggling a lot with this question Your video cleared my doubts Thanks for sharing!
Comment from : @buttercup5029


@weidazhu3519
very very tedious, not recommend
Comment from : @weidazhu3519


@shivamverma-ml8bk
👍👍👍
Comment from : @shivamverma-ml8bk


@MohitJayee
Which tool do you use to draw all these explanations?
Comment from : @MohitJayee


@lingyunsu1589
Best explanation ever!
Comment from : @lingyunsu1589


@dollyvishwakarma2
OMG, the question looked so tough, but you made it soo easy !! Another awesome explanation Great fan of your NEET coding style :)
Comment from : @dollyvishwakarma2


@juliewiner5287
Please Please do wildcard matching !!
Comment from : @juliewiner5287


@srini2010srini
Thanks
Comment from : @srini2010srini


@vdyb745
What a brilliant solution and in-depth explanation for this seriously hard problem !!! WOW Thank you !!!!
Comment from : @vdyb745


@pinkylover911
you are talented <3
Comment from : @pinkylover911


@rongrongmiao3018
Hey Neet you should change your user name to Neat Code!
Comment from : @rongrongmiao3018



Related Regular Expression Matching - Dynamic Programming Top-Down Memoization - Leetcode 10 videos

Regular Job के साथ विजय कुमार ने PhD कैसे पूरी की || PhD with Regular Jobs Regular Job के साथ विजय कुमार ने PhD कैसे पूरी की || PhD with Regular Jobs
РѕС‚ : Quest India
Download Full Episodes | The Most Watched videos of all time
MSW Distance या Regular से करें? | Master of Social Work : Distance vs Regular - कौन सा बेहतर है? MSW Distance या Regular से करें? | Master of Social Work : Distance vs Regular - कौन सा बेहतर है?
РѕС‚ : Academic Research Institute
Download Full Episodes | The Most Watched videos of all time
Understanding and Expression of Language in Down Syndrome Understanding and Expression of Language in Down Syndrome
РѕС‚ : DSRFCANADA
Download Full Episodes | The Most Watched videos of all time
What programming language you should learn?‍?(based off your interests) #programming #technology What programming language you should learn?‍?(based off your interests) #programming #technology
РѕС‚ : Coding with Lewis
Download Full Episodes | The Most Watched videos of all time
How To Make Money With Programming #shortsfeed #ytshorts #viral #programming #skills #java How To Make Money With Programming #shortsfeed #ytshorts #viral #programming #skills #java
РѕС‚ : SourceBit
Download Full Episodes | The Most Watched videos of all time
Module 3 Spotting Dyslexia: 3 D Oral Language vs Written Expression Module 3 Spotting Dyslexia: 3 D Oral Language vs Written Expression
РѕС‚ : Made By Dyslexia
Download Full Episodes | The Most Watched videos of all time
Written Expression u0026 Dyslexia with Diane Douglas Written Expression u0026 Dyslexia with Diane Douglas
РѕС‚ : The Reading And Language Learning Center
Download Full Episodes | The Most Watched videos of all time
Testing for Specific Learning Disability of Written Expression: What Parents Need to Know Testing for Specific Learning Disability of Written Expression: What Parents Need to Know
РѕС‚ : Dysgraphia Life
Download Full Episodes | The Most Watched videos of all time
Virtual Workshop: Creative Expression in the Early Childhood Classroom Virtual Workshop: Creative Expression in the Early Childhood Classroom
РѕС‚ : Jacqueline Sutherland Molina
Download Full Episodes | The Most Watched videos of all time
Under the Table Idiom Meaning - English Expression Videos Under the Table Idiom Meaning - English Expression Videos
РѕС‚ : Essential English and Idioms
Download Full Episodes | The Most Watched videos of all time


Best Way To Make Money With Chat GPT In 2025 (For Beginners) | Easy Ways To Learning Chinese Language. #languagelearning #learningchinese #foreignlanguage #eng | How To Make Money With Google Adsense ($100 A Day In 2022) | Vetech Bubbles The Learning Whale | Assessment For Learning Vs. Assessment Of Learning | Home Away From Home Child Care Learning Center Royal Palm Beach Kona Ice Fun | Arcade Quests! Ep 1: Atlantic City Playcade Wizard Of Oz Coin Pusher RARE TOTO WIN! | 4 Stellar Coins: 1893 S Morgan Dollar, 1923 Peace, 2x Saint Gaudens $20 PCGS Open Box Grade Reveal | Pull Ups® Potty Training Pants For Boys | EXTREMELY OLD U0026 RARE COINS DISCOVERED In Foreign Coin 1/2 Pound Search Hunt #9 | Masters In International Relations Distance Learning | How To Make Money With DeepSeek AI In 2025 | Learn To Talk With Ms Rachel Help Take Care Of Dolls Speech, Baby Sign Doll Turn Into Baby | What Is The Earned Income Tax Credit And Do You Qualify For It? | Technology For Teaching And Learning 1 || The Basic Concepts In ICT | Data Entry U0026Translation Work Online Jobs | Home Based Jobs Without Investment | No Wait Earn Fast | Hard Money Lenders San Diego | San Diego Hard Money Loans | School Of Creative Learning Class I Ch 1 | How To Attract Investors And Use Other People’s Money Robert Kiyosaki, @KenMcElroy | Old Coin Buyer All India Service Company #money #oldcoinbuyer #oldcoinshop #coincollections | King Charles III |5 Pounds Coronation Coin | Unboxing | Unwrapping | Peace Dollar | One Dollar 1923 Liberty United States Of America | With Coin Value | Training U0026 Development Lecture 4 Learning Outcomes (Full Version) | Online Latin Courses | Classical Learning Resource Center | Top 10 Secret Educational Experiences For Kids In Las Vegas | Fun Learning In 2024 |Top 10 Places | Saint Gaudens Double Eagle $20 Gold Coins Comparing The Coins And Their PCGS / NGC Grades | Large Digital Coin Counting Money Saving Box Jar Bank LCD Display Coins Saving Gift For (Euro) | John Cena Wins The Vacant WWE Championship: Money In The Bank 2014 | [Art U0026 Culture] Ancient India Literature | Coins As Literary Source PART 1 | UPSC | Arti Chhawari | 5 Incredibly Fun GAMES To Teach Self Regulation (Self Control) | Social Emotional Learning | Hitman Blood Money Curtains Down 1 Minute PRO | American Vs Canadian Money | How Much Can My Partner Earn Before I Lose My Age Pension | The Art Of Training Delivery: Exploring Neglected Training Delivery Essentials | Take The Money And Run In The Style Of Steve Miller Band | Karaoke With Lyrics