Two Pointers & Sliding WindowBoth patterns replace a nested loop with a single pass by maintaining two indices that only ever move