• + 1 comment

    By "sliding window" don't you mean a loop whithin a loop, so that it counts a surden amount ahead for each item in the lst.