I know that the time complexity of the sliding window algorithm is o(N) but what is the time complexity of a variable-sized sliding window algorithm.
For eg-
array = [1,2,3,4,5,6]
when size of sliding window is = 1 window - [1], [2], [3], [4], [5], [6]
when size of sliding window is = 2 window - [1,2], [2,3], [3,4], [4,5], [5,6]
when size of sliding window is = 3 window - [1,2,3], [2,3,4], [3,4,5], [4,5,6]
and so on ...
window size will range from 1 to n (valid values for window size). If creating a single-window costs O(N) then creating N windows will cost O(N^2)?