Sliding Window Technique

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 18

  • @ashutoshgupta9056
    @ashutoshgupta9056 2 дні тому +1

    Hidden gem of UA-cam.

  • @michaelwirtzfeld7847
    @michaelwirtzfeld7847 Рік тому +8

    Clear and concise. Thank you for teaching me these techniques.

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

    One of the most clear explanations out there. Thanks!!

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

    Why do you not have a lot of subscribers? You definitely deserve way more. I learn better with these animations. This feels like to me 3 blue 1 brown channel. Thank you very much !!!

  • @tanziee
    @tanziee 2 місяці тому +1

    Please upload more videos, your explanation is really clear. You deserve more subscribers

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

    Best explanation, keep going bro ✨

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

    Very clear... perfect explanation!

  • @akhilbabu6337
    @akhilbabu6337 Рік тому +3

    Nice explanation 👌

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

    Grate explanation and animation! Thank you

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

    Greate explanation. Thanks

  • @pearljam4ever215
    @pearljam4ever215 8 місяців тому +2

    I really like your videos keep up the good work♥

  • @Nightshft42
    @Nightshft42 4 місяці тому +1

    Nice explanation. But now I actually wonder if there are cases where the second, dynamic routine misses possible solutions.

    • @profound.academy
      @profound.academy  4 місяці тому +1

      That's a great question. First, you need to make sure the problem can actually be solved using the sliding window technique. Sometimes the solution involves dynamic programming or other approaches and is not solvable with sliding window.
      Once you know the problem is solvable using the sliding window technique, you need to figure out an update procedure where you move from the previous segment of elements to the new one. This usually depends on the problem but in most cases you can increment one side 1 by 1 and adjust the other side with a while loop. That will make sure you don't miss any possible solutions.

  • @ahmedabdalh66
    @ahmedabdalh66 7 місяців тому +1

    Thank you so much

  • @bluesupreme5720
    @bluesupreme5720 8 годин тому

    shad merci !

  • @KaledDahleh
    @KaledDahleh 4 місяці тому

    great exokanatio

  • @rafa017i9
    @rafa017i9 8 місяців тому

    🤩🤩