Sliding Window Technique

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 8

  • @michaelwirtzfeld7847
    @michaelwirtzfeld7847 ปีที่แล้ว +5

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

  • @pearljam4ever215
    @pearljam4ever215 4 หลายเดือนก่อน +2

    I really like your videos keep up the good work♥

  • @akhilbabu6337
    @akhilbabu6337 ปีที่แล้ว +3

    Nice explanation 👌

  • @ahmedabdalh66
    @ahmedabdalh66 3 หลายเดือนก่อน +1

    Thank you so much

  • @SammYLightfooD
    @SammYLightfooD 17 วันที่ผ่านมา

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

    • @profound.academy
      @profound.academy  14 วันที่ผ่านมา

      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.

  • @user-ll6rz5ln5c
    @user-ll6rz5ln5c 25 วันที่ผ่านมา

    great exokanatio

  • @rafa017i9
    @rafa017i9 4 หลายเดือนก่อน

    🤩🤩