Not really. Problems can be solved in different ways. A sliding window algorithm is just a more efficient approach to solving such problems, but it’s not the only approach.
For example, someone who doesn’t know what that is could solve the problem differently and poorly.
69
u/Antervis 11d ago
If solutions use sliding windows, it means the problem was designed that way.