What is the main advantage of using the sliding window technique over a brute-force approach?
The sliding window technique is always faster
The sliding window technique reduces the time complexity by avoiding repeated work
The sliding window technique is less memory intensive
The sliding window technique works only on arrays with unique elements
This question is part of this quiz :
Quiz on Sliding window Technique for DSA