Quiz on Sliding window Technique for DSA: Question 3

Last Updated :
Discuss
Comments

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

Tags:
Share your thoughts in the comments