Sliding window: what is it and when is it better than nested loops? | LetsGit.IT