Minimum Length of String after Deleting Similar Ends - Leetcode 1750 - Python

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 25

  • @VenomIsLazy
    @VenomIsLazy 10 месяцев назад +6

    Thanks I want to pursue Data Science but still watching your videos cause you make DSA fun

  • @Kokurorokuko
    @Kokurorokuko 10 месяцев назад +1

    6:04 actually, we are not just "allowed" to do that. That's the only way it accepts it. I coded exactly the same solution and could not understand why it didn't work. The catch is, we need it only for the second while loop because at that point left pointer has advanced but r has not and they might have the same index. You can check how it works on the string "aa".

  • @yang5843
    @yang5843 10 месяцев назад +7

    You sound like you just woke up, hope you're feeling okay!

  • @jessesinger4790
    @jessesinger4790 10 месяцев назад

    I don't even know where to start on a problem like this but watching your video makes me get it right away... Thank you!

  • @davi_singh
    @davi_singh 10 месяцев назад +2

    OMG, I was so close to the solution on my own, the only place I messed up was `while s[l] == curr and l

  • @satyamjha68
    @satyamjha68 10 месяцев назад +2

    Late but consistent !! Love your videos.

  • @steco5441
    @steco5441 10 месяцев назад +4

    I solved it before you uploaded HAHAHAHAHAHAHA OWNED! Jk man I love you

  • @anirbandas12
    @anirbandas12 10 месяцев назад +2

    Logically it should be l < r, but that doesn't submit only l

    • @TacticalDoge101
      @TacticalDoge101 10 месяцев назад

      IG u would understand it better if u do a dry run on the string "cabaabac", using both the conditions.
      to put it shortly, l

  • @xetria8717
    @xetria8717 10 месяцев назад

    Would you be able to do a video going over Leetcode 1312 (Minimum Insertion Steps to Make a String Palindrome)? Thank you so so much!

  • @Akmabedinkadersafi-O
    @Akmabedinkadersafi-O 10 месяцев назад +1

    I solved it 9 hours ago and searching your video but you did not upload it ,i searched for it 20 minutes ago also. Without seeing your video it feels like did not solve the problem .

    • @fieworjohn5697
      @fieworjohn5697 10 месяцев назад +1

      Same bro. Same. I legit searched to see if there was a Neetcode solution and was surprised i didn't see anything. Eventually had to watch someone else's (p.s: the guy didn't bother explaining and my appreciation of Neetcode's effort increased ×10).

  • @tekfoonlim4745
    @tekfoonlim4745 10 месяцев назад

    Yo I'm so early. Thanks Navdeep for your great videos ! :D Also how are you?

  • @mhmmdmanafov6509
    @mhmmdmanafov6509 10 месяцев назад

    Are you adding these questions to “neetcode all”? Because I could not find this question in that list. Btw big thanks for vast knowledge base

    • @LlamaBG
      @LlamaBG 10 месяцев назад

      these are the daily problems

    • @LlamaBG
      @LlamaBG 10 месяцев назад

      these are the daily problems

  • @m.kamalali
    @m.kamalali 10 месяцев назад

    Thanks a lot my friend,

  • @DNKF
    @DNKF 10 месяцев назад

    Could you please help on explaining "745. Prefix and Suffix Search"?

  • @varunpalsingh3822
    @varunpalsingh3822 10 месяцев назад

    thank you

  • @chien-yuyeh9386
    @chien-yuyeh9386 10 месяцев назад +1

    🎉🎉

  • @Munchen888
    @Munchen888 10 месяцев назад

    Hi, guys. I little a bit have an issue. Please direct me to a right wat. How can we be here greedy. We are using two pointers: left and right. aabccabba . Left pointer should take 2 a’s and right pointer should take 1 a. In general, here we are using loop while l

  • @letsprogress4124
    @letsprogress4124 10 месяцев назад

    hello mr neetcode, i bet a lot of people would be interested for you to cover solutions to leetcode weekly contests on a weekly/biweekly kind of schedule

  • @diasutsman
    @diasutsman 10 месяцев назад

    A bit late, but thank you. Luckily the solution doesn't locked behind the premium so I could still learn the solution. But your explanation is so much better though.

  • @unknown-ut5qn
    @unknown-ut5qn 10 месяцев назад

    Man are you OK? Where is the todays problem?