Quests 11 chapters · 56 problems
Patterns
One technique a chapter, past the basics.
56 problems in 11 chapters of one technique each: strings, windows, maps, stacks, queues, lists, trees, graphs, binary search, backtracking and dynamic programming. A good road to the Classic 75.
Try Strings and parsing, the first chapter, without an account. Create a free account to open every problem and keep your stars.
49 problems to write
- Stacks and queues
- Trees
- Grids
- Still being written7
Choose a plan and a pace. Each day brings a few problems from it, on your dashboard and in the extension. You can change it whenever you like.
Create a free account to choose one, or sign in.
Strings and parsing
Read, rebuild and compare text a character at a time.
0 / 5
Arrays, numbers and bits
Rotate, mark and compare without a second copy.
0 / 5
-
Rotate Array Free account
-
Increasing Triplet Subsequence Free account
-
Best Time to Buy and Sell Stock II Free account
-
Count Primes Free account
-
Minimum Flips to Make a OR b Equal to c Free account
Sliding windows
A stretch that grows on one side and shrinks on the other.
0 / 3
-
Maximum Number of Vowels in a Substring of Given Length Free account
-
Max Consecutive Ones III Free account
-
Longest Subarray of 1's After Deleting One Element Free account
Maps and sets
Count, pair and check in one pass.
0 / 3
-
Max Number of K-Sum Pairs Free account
-
Equal Row and Column Pairs Free account
-
Valid Sudoku Free account
Stacks
The last thing kept is the first thing used, and a stack kept in order.
0 / 6
-
Removing Stars From a String Free account
-
Asteroid Collision Free account
-
Decode String Free account
-
Min Stack Free account
-
Daily Temperatures Free account
-
Online Stock Span Free account
Queues and design
Rounds in turn, and objects that keep their own state.
0 / 2
-
Dota2 Senate Free account
-
Smallest Number in Infinite Set Free account
-
Shuffle an Array Coming
Linked lists
Rewire the nodes with a pointer or two.
0 / 3
-
Delete the Middle Node of a Linked List Free account
-
Odd Even Linked List Free account
-
Maximum Twin Sum of a Linked List Free account
-
Delete Node in a Linked List Coming
Trees
Carry something down every branch, or go level by level.
0 / 5
-
Count Good Nodes in Binary Tree Free account
-
Longest ZigZag Path in a Binary Tree Free account
-
Path Sum III Free account
-
Binary Tree Right Side View Free account
-
Maximum Level Sum of a Binary Tree Free account
-
Lowest Common Ancestor of a Binary Tree Coming
-
Delete Node in a BST Coming
Graphs
Search out what is connected, deepest first or nearest first.
0 / 6
-
Keys and Rooms Free account
-
Number of Provinces Free account
-
Reorder Routes to Make All Paths Lead to the City Zero Free account
-
Evaluate Division Free account
-
Nearest Exit from Entrance in Maze Free account
-
Rotting Oranges Free account
Search and order
Halve a range, sort to narrow, and keep the smallest next.
0 / 6
-
Find Peak Element Free account
-
Koko Eating Bananas Free account
-
Successful Pairs of Spells and Potions Free account
-
Search Suggestions System Free account
-
Minimum Number of Arrows to Burst Balloons Free account
-
Kth Largest Element in an Array Free account
-
Maximum Subsequence Score Coming
-
Total Cost to Hire K Workers Coming
Choices and tables
Try each choice and take it back, or keep a table of answers.
0 / 5
-
Letter Combinations of a Phone Number Free account
-
Combination Sum III Free account
-
Domino and Tromino Tiling Free account
-
Best Time to Buy and Sell Stock with Transaction Fee Free account
-
Edit Distance Free account