Tag Archives: sliding-window

Window Sliding Technique

This technique shows how a nested for loop in few problems can be converted to single for loop and hence reducing the time complexity. Let’s start with a problem for illustration where we can apply this technique – Given an array of integers of size ‘n’. Our aim is to calculate the maximum sum of… Read More »