Algorithms & DS

Data structures, algorithm analysis, problem-solving patterns, and interview preparation.

  1. Mar 20, 2026·6 min read·algorithmsSliding 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.
  2. Feb 5, 2026·5 min read·algorithmsTwo 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.