Pratiquer les mathématiques discrètes

Sliding Window Strings

Browse Sliding Window Strings lessons inside Algorithmic Thinking and Complexity.

1 lessons · 5 questions

Algorithmic Thinking and Complexity

Big-O, loop analysis, graph algorithms, invariants, and developer-focused discrete math.

1 lessons · 410 questions

Sliding Window Strings

1 lessons · 5 questions

Least You Need to Know: Two Pointers, Sliding Windows, and String Scans

Many interview string problems are not about deep string theory. They are about keeping a **contiguous window** consistent while scanning left to right. The key question is what summary of the current window lets you expand, shrink, and answer the prompt in overall linear time.

Ouvrir la leçon