Patterns A to Z

Patterns

Know the pattern you need? Pick it from the list. Each one links to the lessons that teach it, with code and practice problems.

Cyclic sort

1 lesson

Foundations

4 lessons

Hashing

1 lesson

Kadane's algorithm

1 lesson

Merge intervals

1 lesson

Moore's voting

1 lesson

Next permutation

1 lesson

Number theory

2 lessons

Prefix sum

2 lessons

Sliding window

3 lessons

Three-way partition

1 lesson

Two pointers

2 lessons