Sliding window technique is used to reduce the use of nested loops and replace it with a single loop, thereby reducing the time complexity.
Hand written notes






Learn to Code and Code to Learn
Your Journey to Code Mastery
Sliding window technique is used to reduce the use of nested loops and replace it with a single loop, thereby reducing the time complexity.