For what purpose we can use sliding window technique in the context of algorithms?
To calculate all possible subsets of a given set
To optimize the time complexity of finding the maximum or minimum sum in a subarray
To implement dynamic programming efficiently
To iterate over all elements in an array in constant time
This question is part of this quiz :
Quiz on Sliding window Technique for DSA