Arrays & Strings: Advanced Patterns — Prefix Sums, Two Pointers & Sliding Window
Arrays and strings are usually among the first topics we learn when starting with data structures and algorithms. At first, the problems seem straightforward: Then the problems start getting interesting. You are given a large array and asked to find a particular subarray. You need to process millions of events and identify activity within a … Read more