CodeMosa
Master LeetCode Patterns
All Patterns
Collections
Sign In
Back
Sliding Window
Question 1 of 10
10% Complete
Easy
What's the key difference between fixed and variable sliding window?
A
Fixed window has constant size k; variable window expands/shrinks based on a condition
B
Fixed window is faster than variable window
C
Variable window only works with strings
D
Fixed window requires sorting first
Need a hint?
Think about when the window size changes