Algorithms & DS
Data structures, algorithm analysis, problem-solving patterns, and interview preparation.
- Sliding window: the linear-time answer to subarray questionsA family of interview problems falls to the same pattern once you see it. The sliding window is that pattern.
- Two pointers: a pattern, not a trickOnce you see the two-pointer pattern clearly, you start seeing it everywhere. Here is how I think about it.