Challenges
Practise the patterns that solve most problems, in Python or TypeScript. Every solution runs in your browser, and the checks tell you not only whether it works but how it scales.
Daily Challenge
Hash Map
Trade a little memory for a lookup that takes one step.
0 of 10 solved Two Pointers
Walk a list from both ends instead of trying every pair.
0 of 10 solved Sliding Window
Keep a running range up to date instead of recounting it.
0 of 11 solved - Busiest StretchEasy
- Best k-Day TotalEasy
- Longest Steady ClimbEasy
- Shortest Stretch Over a TargetEasy
- Distinct Values in Every WindowEasy
- Longest Winning StreakEasy
- Letters Rearranged Somewhere InsideEasy
- Longest Unique RunMedium
- Longest Repeat With k ChangesMedium
- Smallest Window Holding Every LetterHard
- Highest in Every WindowHard
Stack
Remember what is still open, and close the latest first.
0 of 10 solved Binary Search
Halve what is left to search with every step.
0 of 10 solved Graphs
Walk a grid or a network step by step, breadth first or depth first.
0 of 11 solved Running Totals
Add up once as you go, and answer any stretch's total in one step.
0 of 5 solved Dynamic Programming
Solve every smaller problem once, and build the answer from them.
0 of 5 solved