VISUALGO//POINTERS
fixed window · two-pointer trace console · O(n)
Goal:Find the maximum sum of any 3 consecutive elements by sliding a fixed-size window across the array.
16
06
114
213
320
410
51
616
74
83
9▲
L▲
RARRAY SIZE
WINDOW SIZE (K)
READOUT
step0 / 8
current sum36
best sum36
best start0
statusIDLE