Question DSA-TP-0027
EasyWhen a fixed-size sliding window moves one step to the right, how is its sum updated?
- A.
Add the new element on the right and subtract the element that left on the left
- B.
Double the old sum
- C.
Sign up free to see the answer and a step-by-step explanation.