• + 1 comment

    By "sliding window", I mean one loop without nesting another loop within it. When you advance to the next item, you add one item and subtract another item.