Longest Palindromic Substring O(N) Manacher's Algorithm

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 483

  • @ntesla5
    @ntesla5 9 місяців тому +12

    8 years old but still better explanation compared to newer videos explaining the same

    • @IDeserve
      @IDeserve  3 місяці тому +1

      Thank you :)

  • @ritikparida3104
    @ritikparida3104 4 роки тому +56

    GFG took 4 articles to explain this. This man nailed it in only 15 mins .

  • @AP-eh6gr
    @AP-eh6gr 8 років тому +200

    epic explanation man. watching it twice did it for me. i can imagine the patience it took you to make these 176 slides

    • @IDeserve
      @IDeserve  8 років тому +28

      +ashish paralkar Thanks a lot for your kind feedback and you are right in that it took some patience to create this video. Ashish, we would really appreciate if you can spread the word about IDeserve(www.ideserve.co.in) in your peer circles.
      Cheers,
      Team IDeserve

    • @bryanbocao4906
      @bryanbocao4906 6 років тому +1

      @@IDeserve Thanks for making these slides and video! How long did it take you to make these slides?

    • @rahulchaubey8988
      @rahulchaubey8988 4 роки тому +1

      Bro mai ni samajh paya

  • @eceserin
    @eceserin 2 роки тому +3

    Save time: I watched all of Manacher`s algorithms on youtube, this is the best one.

  • @jony7779
    @jony7779 6 років тому +90

    I have honestly never encountered an O(n) algorithm that is tricker than this. You give the best explanation though, thank you.

    • @IDeserve
      @IDeserve  6 років тому +3

      Thank you so much for your kind words Jon!

    • @Adityarm.08
      @Adityarm.08 4 роки тому +3

      Ukkonen's suffix tree construction would do if you want to see that. 😄

    • @mohammadanasmudassir9443
      @mohammadanasmudassir9443 4 роки тому +1

      @@Adityarm.08 That algorithm is an atrocity. I was only able to code 80% of it and cannot understand the online solutions :/

    • @Adityarm.08
      @Adityarm.08 4 роки тому +1

      @@mohammadanasmudassir9443 you need test cases, very thorough ones. I was also stuck at that point where you are - I think. that 1 famous Stack overflow post has a full chain of comments all of which taken together paint the full picture.

    • @bittupaul9455
      @bittupaul9455 10 місяців тому

      Ukkonen is a nightmare

  • @expansivegymnast1020
    @expansivegymnast1020 2 роки тому +9

    Took me over a week to finally understand all of this. This is one of the hardest algorithms out there. Outstanding work!

    • @IDeserve
      @IDeserve  2 роки тому

      Thanks 😊

    • @dazleopper99
      @dazleopper99 11 місяців тому

      thank you ! Great job !@@IDeserve

  • @DanielOchoa23
    @DanielOchoa23 3 роки тому +4

    Dude. This was hands down the BEST explanation for the algorithm I've ever heard. Thank you so much!

  • @kayysean99
    @kayysean99 Місяць тому +2

    Quite brilliant. I went through 3-4 videos and 4-5 wiki/tutorials before this and I was extremely frustrated.
    Finally my friend recommended your video and it is easily the best. Thanks a ton for putting in the effort to make this video.
    Took me two passes to fully understand the code walkthrough but you've done a great job.

    • @IDeserve
      @IDeserve  Місяць тому +1

      Thank for your nice words Kayysean99!

  • @ZeeshanSagheerAnsari
    @ZeeshanSagheerAnsari 2 роки тому +7

    Epic video on Manacher's algorithm . Very clear and precise explaination. Appreciate the effort you have put to create this content.

  • @fizzburn
    @fizzburn 4 роки тому +13

    IDeserve, you definitely deserve a standing ovation! I can't wait to checkout your other videos. Thank you!

  • @shefalichaudhary8621
    @shefalichaudhary8621 8 років тому +15

    I was struggling the whole day to understand this topic and now finally I saw this video. I feel relieved now , very well explained along with the code.

    • @IDeserve
      @IDeserve  8 років тому +1

      Thanks a lot for your words Shefali :)
      We are striving hard to make understanding algorithms easier.
      We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues.
      Also please check out our website at: www.ideserve.co.in
      It has features like Algorithm Visualization, Learn Together and many more coming soon.
      Please check it out and leave us a comment there!
      Thanks,
      -Team IDeserve.

  • @ziyanwang6937
    @ziyanwang6937 4 роки тому +11

    Best explanation on Manacher's alg I've ever seen! Really appreciate you for sharing this!

  • @tonystarc9567
    @tonystarc9567 3 роки тому +13

    This was pretty difficult to understand but your efforts are commendable. Thank you

  • @doug8171
    @doug8171 6 років тому +1

    So far, the best video for understanding it, rather than just explaining the process

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much Doug for your kind words :)

  • @englishlnowledge486
    @englishlnowledge486 2 роки тому +2

    This is best lecture, I have found on UA-cam to understand the Manacher's Algorithm. The way you teach It reflect how much deep understanding You have. Thank You for this wonderful explanation, It saves lot of time and effort.

    • @IDeserve
      @IDeserve  2 роки тому

      Thank You! 😊

    • @jabedhasan21
      @jabedhasan21 Рік тому

      I agree with you. When I started thinking about revising this algorithm, I came here.

  • @imranyusubov4187
    @imranyusubov4187 2 роки тому +2

    great explanation, finally understood the enigma of Manacher's algorithm. keep doing the cool work

  • @shubhampareek2378
    @shubhampareek2378 5 років тому +3

    I don't think this could've been explained any better than this. Appreciate your efforts, sir.
    Keep up the good work.
    Thanks

  • @AbhrajyotiKundu00
    @AbhrajyotiKundu00 3 роки тому +2

    After spending 1.5 days on this problem, and reading that 4 pg GFG article, thank God I found the link of this video in the discuss section of GFG. This is the Best Explanation till now of Manacher's Algo. Thank You @IDeserve for this wonderful explanation :)

    • @IDeserve
      @IDeserve  3 роки тому +1

      Thanks Abhrajyoti!

  • @arnabchatterjee7651
    @arnabchatterjee7651 3 роки тому +1

    wow man the amount of effort you took to explain in this video is incredible, take a bow sir

    • @IDeserve
      @IDeserve  3 роки тому

      Thanks Arnab ☺️

  • @fredesch3158
    @fredesch3158 2 роки тому +4

    couldn't get anything from the explanation alone, but as soon as you started showing the code, everything you explained started to click into place, very much well done

  • @tusharvyavahare9229
    @tusharvyavahare9229 2 роки тому +1

    I've watched around 5 videos and read 6 articles on this topic, and this video is the best and lucid explanation of the topic. Thankyou!

    • @IDeserve
      @IDeserve  2 роки тому +1

      Thanks Tushar! 😊

  • @BryanRink
    @BryanRink 3 роки тому +1

    I didn't think I fully got it when I finished the video, but then I tried to code it without referencing back here and it worked. Thanks!

  • @KshitijBhatnagar
    @KshitijBhatnagar 4 роки тому +2

    Nice explanation... I watch the video a couple of times, but I understood it perfectly. Thanks man for sharing this.

    • @IDeserve
      @IDeserve  3 роки тому +1

      Thanks Kshitij for kind words!

  • @Kp96321
    @Kp96321 4 роки тому +4

    Thanks, the best walk-through of the algorithm I've seen so far!!
    Why'd you guys stop making videos?

  • @priyanshuranjan1038
    @priyanshuranjan1038 4 роки тому +3

    gone through many videos of manacher's algorithm.But this is the one where my searching stopped.Thank you for this awesome content

  • @nightking6719
    @nightking6719 4 роки тому +1

    best explanation found till now !!

  • @shivanshshekhar
    @shivanshshekhar 5 місяців тому +1

    Was really struggling to the point I was gonna skip this algorithm. You helped me understand it, thank you so much for your help! This is way better than some videos with more views.

    • @IDeserve
      @IDeserve  3 місяці тому

      Thanks for the comment Shivansh :)

  • @asifmujtaba334
    @asifmujtaba334 7 років тому +2

    I was struggling yesterday night switching from video to video, at first, I didn't understand your explanation, but now it's clear. Thank you very much.

    • @IDeserve
      @IDeserve  7 років тому

      Thanks for your kind words :)
      We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues.
      Also please check out our website at: www.ideserve.co.in
      It has features like Algorithm Visualization, Learn Together and many more coming soon.
      Please check it out and leave us a comment there!
      Thanks,
      -Team IDeserve.

  • @subhedarsanchay
    @subhedarsanchay 5 років тому +47

    I don’t give up often but when I do it’s Manacher’s algorithm 😂

  • @prabhavagrawal1712
    @prabhavagrawal1712 2 роки тому +2

    Seriously, the best explaination I could get on whole youtube.
    Thanks :)

  • @sudiptapaul9855
    @sudiptapaul9855 2 роки тому +3

    Your explanation is Amazzing, simple and easy to understand, probably the best for such a complex algorithm. please keep it up. Thanks for this video and thanks to Mr Manacher as well for this algorithm.

  • @emilianobustamante5013
    @emilianobustamante5013 8 місяців тому +1

    been trying to understand it for hours and I understood it perfectly in a 15 minute video. thank you so much!

  • @ankishbansal420
    @ankishbansal420 5 років тому +2

    Thanks man. I struggle for whole day to understand it, but you made it so easy. Really appreciate your effort.

  • @kunalpareek8321
    @kunalpareek8321 2 роки тому +2

    Excellent and very detailed presentation of a very complex topic. A lot of work must have gone into the graphics.

  • @aayushisingh3280
    @aayushisingh3280 3 роки тому +1

    The "thinking pause" did it for me. I am floored

  • @chinmaiveera7586
    @chinmaiveera7586 4 роки тому +1

    I've seen many top youtuber's tried to explain but only you succeeded.

  • @柯宥安-q2e
    @柯宥安-q2e 5 років тому +2

    Best Manacher's Algorithm explanation I have ever seen.

  • @winstondu4180
    @winstondu4180 9 років тому +12

    Hey, I love these videos. These are definitely helping me as I prepare for the interview for my internships.

    • @IDeserve
      @IDeserve  9 років тому +1

      +Wenhao Du
      Thanks a lot for your words! It is very encouraging to hear such comments!
      Also please check out our website at: www.ideserve.co.in
      It has features like algorithm visualizations, learn together and many more coming soon.
      Please check it out and leave us a comment there!
      Thanks,
      -Team IDeserve.

  • @hoelefouk
    @hoelefouk 5 років тому +4

    You are so good that you could have come up with this algorithm on your own. Thanks!

    • @IDeserve
      @IDeserve  5 років тому +1

      Thanks Nisheet for your kind words!

  • @jamesqiu6715
    @jamesqiu6715 7 років тому +1

    I watch it again after almost 2 years, I have to say this video is by far the BEST algorithm on youtube ever!!!

    • @IDeserve
      @IDeserve  7 років тому

      Hey James, welcome back!

  • @casinarro
    @casinarro Рік тому +1

    the best and most clear explanation of manacher on YT

  • @madhivarman508
    @madhivarman508 5 років тому +2

    went through a lot of videos to understand this algorithm. But this one is the best so far.

  • @kekaiskeka
    @kekaiskeka 5 років тому +1

    Excellent explanation for a complex algorithm. Minor correction of logic:
    If condition after 'while' loop is going to run every 'i' values that are greater than R.
    Example: 'ABABABACDEFG' try this as an example and check C and R values would change for i > 15 and overwrite C and R values to lower values. This will result in a wrong output.
    So, this 'if' condition should check for P[i] should be greater than P[R] to change C and R to new values.
    Replace
    if(i + P[i] > R)
    with
    if(P[i] > P[R])
    Thank you for the great explanation.

  • @aatishchauhan8957
    @aatishchauhan8957 4 роки тому +2

    A really good explanation. Thanks for your hardwork man.

    • @IDeserve
      @IDeserve  4 роки тому

      Thanks Aatish!

    • @aatishchauhan8957
      @aatishchauhan8957 4 роки тому

      @@IDeserve Is the video on explaining the time complexity of this algorithm uploaded ?

  • @siteshp
    @siteshp 6 років тому +1

    What an explanation sir. Keep it up. The best thing was you dry ran the code also with values, i didn't require even a pen and a copy to understand.

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much for your kind words Sitesh!

  • @AshwaniSharma-of2nq
    @AshwaniSharma-of2nq 5 років тому +2

    I have watched other videos also. But your one made me understand it completely. Kudos to you buddy. Keep going.

  • @shubhamchandra9258
    @shubhamchandra9258 2 роки тому +2

    Superb explanation. I was able to follow through without any trouble. Hats off. Would be great if you could explain KMP algo and Z algo as well. Thanks for this one.

  • @akilageetha5773
    @akilageetha5773 4 роки тому

    Extra ordinary explanation of the mental modal behind Manacher's algorithm. The best of the best.

  • @prateekvats963
    @prateekvats963 4 роки тому +2

    Such a easy explanation, thank you sir

  • @rbt-0007
    @rbt-0007 3 роки тому +2

    Bro you saved my day with your wonderful explanation, definitely subscribing!

  • @vijaykumarlokhande1607
    @vijaykumarlokhande1607 3 роки тому +1

    I had decided to skip manachers algo for upcoming placement! Now I have it in my toolkit! thanks man
    gr8 job!

    • @IDeserve
      @IDeserve  3 роки тому

      All the best for the placements!

  • @harmeetsingh9571
    @harmeetsingh9571 5 років тому +2

    Really great explanation. Watched couple of videos for this algo and yours is the best one. Very precise and your code walkthrough was awesome which made it complete. Appreciate your efforts in making those slides.
    Your videos would be mine first goto from now.
    Happy to share!

    • @IDeserve
      @IDeserve  5 років тому

      Thank you so much for your kind words Harmeet!

  • @m-meier
    @m-meier 2 роки тому +2

    Thank you sir! It's a really helpful video!

    • @IDeserve
      @IDeserve  2 роки тому

      Thanks Miguel! 😊

  • @owenxu9173
    @owenxu9173 8 років тому +2

    Great video. I have read some blogs about this Algorithm and still not understand.
    Withi your explaination, it become clear to me! Thanks very much!

    • @IDeserve
      @IDeserve  8 років тому

      +Owen Xu
      Thanks a lot for your words! We are striving hard to make understanding algorithms easier.
      We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues.
      Also please check out our website at: www.ideserve.co.in
      It has features like algorithm visualizations, learn together and many more coming soon.
      Please check it out and leave us a comment there!
      Thanks,
      -Team IDeserve.

  • @savanmatariya7494
    @savanmatariya7494 3 роки тому +2

    Awesome explanation, loved your work and effort. You actually deserve it!!

  • @puneettanwar2325
    @puneettanwar2325 4 роки тому +3

    very clear explanation. Great work. Thank you!

  • @prashantgupta8801
    @prashantgupta8801 4 роки тому +2

    Awesome explanation. Thank you very much. Appreciate your efforts.

  • @mihirkumarsrivastava1895
    @mihirkumarsrivastava1895 4 роки тому +2

    the best explanation of manacher's algorithm, great buddy it really hepled me alot

  • @yevgeniygrechka6431
    @yevgeniygrechka6431 Рік тому +1

    This is an excellent video. Just one suggestion for future videos: in the example that you went over, we never had the case where we had to take R-i over P[mirr]. It would be good for the example to include this case.

  • @danielwen1227
    @danielwen1227 6 років тому +3

    Thank you a lot for your explanation! It is the video that is worthy to spend 24 minutes on it!

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much for your kind words Daniel!

  • @aceorochi
    @aceorochi 8 років тому +2

    Awesome!
    This is the most intuitive explanation, even people dull like me can understand the point of this algorithm now!
    Nice job, looking forward more of your publish!

    • @IDeserve
      @IDeserve  8 років тому

      +吴佩 It's really encouraging to hear comments like these. Yes we are uploading new videos on regular basis. So, stay tuned :-).
      Please feel free to let us know if you would like us to upload a video for a particular topic/algorithm. We will really appreciate if you can spread the word about IDeserve(www.ideserve.co.in) in your peer circles.
      Thank you,
      Team IDeserve

  • @AnkurDwivedi75
    @AnkurDwivedi75 4 роки тому +2

    I have been trying to understand this algorithm, but failing .. thanks ..just a single watch here on ur channel, I have understood it completely

  • @iloveans
    @iloveans 4 роки тому +2

    Thanks for the extremely clear explanation! Tracing the code made it even better :)

    • @IDeserve
      @IDeserve  4 роки тому

      You are welcome Tyler!

  • @anxiousengineer
    @anxiousengineer 5 років тому +2

    I looked at some other explanations and yours is by far the best. Thank you so much!

    • @IDeserve
      @IDeserve  5 років тому

      Thank you so much for your kind words Dario!

  • @glorykim9171
    @glorykim9171 5 років тому +2

    This was so helpful thank you! I appreciate all of the patience it took you to iterate through this.

    • @IDeserve
      @IDeserve  5 років тому

      Thank you so much for your kind words Glory!

  • @shaivalchokshi3424
    @shaivalchokshi3424 7 років тому +2

    Wonderful explanation, concise and apt :)
    Helped me understand it till the depth. Great work, kudos !

    • @IDeserve
      @IDeserve  7 років тому +1

      Thanks Shaival for your kind words :)

  • @BK-rs1we
    @BK-rs1we 5 років тому +10

    Great explanation. I feel if there were indices on P[ ] then it would be easier to follow when you went through the code.

  • @tombrady7390
    @tombrady7390 3 роки тому

    after rewinding and pausing crying finally it just clicked dont give up on this it is staple for palindromic problems

  • @ppantg1
    @ppantg1 5 років тому

    It's actually quite a simple algorithm once we become familiar with the concept. Basically, copying over the mirrors expansion length if the index lies within the current right boundary means we don't calculate the expand length from scratch at every index - we use the symmetric property of palindromes to give us a O(n) time.

  • @NishArcturus
    @NishArcturus 4 роки тому +13

    23:48 minutes used for the best man !! Thank you so much for this finally got this😂

  • @elvis0305
    @elvis0305 5 років тому +2

    This is awesome explanation , the visualisation helps a lot with understanding the idea behind the algorithm! Great job guys.

  • @adarshjadhav8877
    @adarshjadhav8877 4 роки тому +1

    excellent explanation bro. your patience must be paid off. keep up good work...

  • @kumarravi09
    @kumarravi09 6 років тому +2

    Great Explanation. Probably the best i have come across so far.

  • @tejavemparala4377
    @tejavemparala4377 3 роки тому +1

    Great Explanation, no other video on YT does the explanation this way, I was looking for video like this. Eg: "what is making the brute force algorithm to run in O(n^2) and how it can be optimized"

  • @ayushkushwaha262
    @ayushkushwaha262 5 років тому +2

    Spent whole day to understand this from other resources result ==> ~NULL
    Spent time here understood in 2 go !!
    Recommended!!
    Thank you for the best explanation.

    • @IDeserve
      @IDeserve  5 років тому

      Thanks Ayush for your kind words!

  • @IDeserve
    @IDeserve  9 років тому +7

    +Andrea De Domenico
    Thanks a lot for appreciating! There are many more videos coming soon. Also, you can let us know any interview topic or question of your choice that you would like to see on IDeserve.
    Thanks,
    -Team IDeserve.

    • @MrMalapatiravi
      @MrMalapatiravi 6 років тому

      I would recommend most of the difficult and medium level questions from leetcode and their principles.

  • @gameelevator1579
    @gameelevator1579 2 роки тому +4

    Sir you nailed it . Thank you so much for awesome explanation 🙂

    • @IDeserve
      @IDeserve  2 роки тому

      Thank you for your kind words! 😊

  • @sayedsohel6913
    @sayedsohel6913 7 років тому +1

    you have done a good job debugging the code. keep it up bro.

    • @IDeserve
      @IDeserve  7 років тому

      Thank you so much Sayed for your kind words :)

  • @AshuAshuAshuAshu
    @AshuAshuAshuAshu 3 роки тому +1

    thank you so much, sir, you are great ......
    I found a lot of videos on manchester's algo but all that was waste material.
    you are a gem in terms of algorithms.

  • @tarunbawari2858
    @tarunbawari2858 4 роки тому +1

    Nice explanation sir, other youtubers video are little difficult to understand on this topic.

  • @glennmarkabalos6657
    @glennmarkabalos6657 4 роки тому +2

    thanks man. explanation is so good!!

  • @akshaykumarmalathkar2968
    @akshaykumarmalathkar2968 3 роки тому

    If 'i' lies within boundaries we can directly copy mirror length to 'P[i]' but in the code why do we write 'min(R-i, P[mirr])' ?

  • @rejetimeghavardhan7805
    @rejetimeghavardhan7805 3 роки тому +1

    Very good explanation Thanks you very much!

  • @MadForCs16
    @MadForCs16 3 роки тому +1

    Best explanation On the INTERNET.

  • @tanmoydatta5724
    @tanmoydatta5724 6 років тому +2

    Awesome work man. Best explanation ever i have found on online.

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much for your kind words Tanmoy 😀

  • @anirudhreddybasani3555
    @anirudhreddybasani3555 5 років тому +1

    These repetitive comments on how brilliant this video was tells us about this video...from my side I really appreciate your efforts :)

  • @prudvinathmalepati3322
    @prudvinathmalepati3322 6 років тому +2

    Thanks man!! You are a good teacher. I got the central idea after watching your video once. Now, I can try coding it on my own.

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much for your kind words Prudvinath!

  • @ganeshkumar269
    @ganeshkumar269 5 років тому +3

    youtube recommended this, glad it did

  • @ramgopalvarma3810
    @ramgopalvarma3810 6 років тому +2

    you definitely deserve a subscription man.

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much for your kind words Ram!

    • @ramgopalvarma3810
      @ramgopalvarma3810 6 років тому +1

      Actually I was going to leave this algorithm after seeing Tushar Roy's video knowing how complex this is but after seeing yours the rest is history. Just make stuff like this and make UA-cam a better place to learn✌️

    • @IDeserve
      @IDeserve  6 років тому

      Thank you so much Ram!

  • @akshaytenkale6952
    @akshaytenkale6952 6 років тому +1

    How come the complexity is O(n) if there is a while loop inside for loop, worst case should be O(n^2)

    • @CONGKAMAEL
      @CONGKAMAEL 5 років тому +1

      Agreed, it is stated the correct time complexity on the slides. The title of the video has wrong complexity.

  • @Lunatiq.
    @Lunatiq. 5 років тому +1

    You can make it even faster if you'll check for "larger" palindrom, so when we've found the size 7 for example, at the start we check chars at that boundary.
    And I really can't get why it's only 2 "passes" through the string, because if it's string of same char, it will check the same char multiple times, like n/2 times for the first and n - i / 2 for the rest.

  • @LetsBeHuman
    @LetsBeHuman 5 років тому +2

    2:25 - How is this O(n)? At each alphabet, we are again going both the sides to see if it is a palindrome.
    For worst cases like AAAAAAAAAA, won't it be O(n2) ?

    • @guannanzhao4824
      @guannanzhao4824 5 років тому +1

      Good question! Below is my explanation.
      The time complexity is determined by the number of times you compare the chars. The result of each comparison is either "equal" or "not equal". Whenever the result is "equal", the right boundary moves, which cannot happen more than O(n) times. When the result is "not equal", the char is done and you move on to the next char, which cannot happen more than O(n) times either. So the algorithm is guaranteed to take O(n) time in any case.

  • @Sachin-tj1ci
    @Sachin-tj1ci 5 років тому +2

    Superb explanation...!!!! finally understood algo..!!!

    • @IDeserve
      @IDeserve  5 років тому

      Thanks you for your kind words Sachin!

  • @yuvarajyuvi2644
    @yuvarajyuvi2644 5 років тому +2

    Good explanation man...Try to explain all the important algorithms like this...

  • @jacobhubbard7337
    @jacobhubbard7337 9 років тому +5

    Great work. Best explanation I've seen yet.

    • @IDeserve
      @IDeserve  9 років тому

      +Jacob Hubbard Thanks a lot for your words! It is very encouraging to hear such comments! We are striving hard to make understanding algorithms easier.
      Please check out our website at: www.ideserve.co.in. It has features like algorithm visualizations, learning together and many more coming soon!

  • @vivekanandkhyade
    @vivekanandkhyade 8 років тому

    which animation software are you using?

  • @NaitikMishra-ll7el
    @NaitikMishra-ll7el Рік тому +1

    best video to understand Manacher's Algorithm.👍👍

  • @DAaaMan64
    @DAaaMan64 7 років тому

    If we store a max, in this case 7, why can't we exit early when the center of the palindrome at i cannot possibly be greater than 7? A palindrome at i of length 7 or more would hit end of string. Am I wrong or it perhaps not worth checking for this case?

  • @forceinfinity
    @forceinfinity 8 років тому +3

    Excellent presentation. Hugely helpful in understanding the algorithm

    • @IDeserve
      @IDeserve  8 років тому +1

      Thanks forceinfinity for your kind words :)
      We are striving hard to make understanding algorithms easier.
      We would really appreciate if you could spread the word about IDeserve in your college and to your colleagues.
      Also please check out our website at: www.ideserve.co.in
      It has features like Algorithm Visualization, Learn Together and many more coming soon.
      Please check it out and leave us a comment there!
      Thanks,
      -Team IDeserve.

  • @ratulbanerjee5226
    @ratulbanerjee5226 4 роки тому

    Directly accessing T[i+1+P[i]] and T[i-P[i]-1] without checking if they are breaching string boundaries(i+1+P[i] >= T.length() and i-P[i]-1