Can we formulate the problem as sliding window?

Cited by 6