Quests 9 chapters · 55 problems
Warm-ups
Short problems, one idea each.
Every easy problem here, in nine short chapters: maps and sets, two pointers, one pass, text and numbers, bits, stacks and lists, trees, sorting and small steps. A gentle way in before the bigger lists.
Try Count and look up, the first chapter, without an account. Create a free account to open every problem and keep your stars.
51 problems to write
- Arrays
- Trees
- Hash maps and sets
- Still being written4
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.
Count and look up
A map or a set answers in one step.
0 / 7
Two pointers
Two places moving through a list or a string together.
0 / 7
-
Reverse String Free account
-
Valid Palindrome Free account
-
Merge Strings Alternately Free account
-
Reverse Vowels of a String Free account
-
Is Subsequence Free account
-
Move Zeroes Free account
-
Remove Duplicates from Sorted Array Coming
-
Merge Sorted Array Free account
One pass
Keep the best, the total or the count as you go.
0 / 7
- Best Time to Buy and Sell Stock New
-
Kids With the Greatest Number of Candies Free account
-
Can Place Flowers Free account
-
Find the Highest Altitude Free account
-
Find Pivot Index Free account
-
Maximum Average Subarray I Free account
-
Plus One Free account
Text and numbers
Read numerals, build rows, and find what strings share.
0 / 7
-
Fizz Buzz Free account
-
Roman to Integer Free account
-
Longest Common Prefix Free account
-
Find the Index of the First Occurrence in a String Free account
-
Greatest Common Divisor of Strings Free account
-
Pascal's Triangle Free account
-
Power of Three Free account
Bits
Xor, shifts and counting ones.
0 / 6
-
Single Number Free account
-
Missing Number Free account
-
Hamming Distance Free account
-
Number of 1 Bits Free account
-
Reverse Bits Free account
-
Counting Bits Free account
Stacks, queues and lists
Brackets on a stack, calls in a queue, and links turned round.
0 / 5
- Valid Parentheses New
-
Number of Recent Calls Free account
- Reverse Linked List New
-
Merge Two Sorted Lists Free account
-
Palindrome Linked List Free account
-
Linked List Cycle Coming
Trees
Recursion down a tree, one node at a time.
0 / 8
-
Maximum Depth of Binary Tree Free account
-
Invert Binary Tree Free account
-
Same Tree Free account
-
Symmetric Tree Free account
-
Subtree of Another Tree Free account
-
Leaf-Similar Trees Free account
-
Search in a Binary Search Tree Free account
-
Convert Sorted Array to Binary Search Tree Free account
Sort and search
Sort to compare neighbours, and halve the range to guess.
0 / 1
-
Meeting Rooms Free account
-
First Bad Version Coming
-
Guess Number Higher or Lower Coming
Small steps
Each answer from the few just before it.
0 / 3
-
Climbing Stairs Free account
-
Min Cost Climbing Stairs Free account
-
N-th Tribonacci Number Free account