Practice
Short quizzes with answers and explanations. Test what you learned, find your weak spots, earn XP and climb the leaderboard.
Data Structures & Algorithms
Time & Space Complexity Quiz
Can you find the Big-O of real code? 8 questions on loops, logarithms, recursion and space.
8 questions · 10 min · +10 XP
Arrays & Hashing Quiz
Hash sets, frequency maps, the Two Sum complement trick, prefix sums and Kadane's algorithm.
8 questions · 12 min · +10 XP
Two Pointers Quiz
Opposite-end pointers, in-place read/write pointers, 3Sum and Container With Most Water.
8 questions · 10 min · +10 XP
Sliding Window Quiz
Fixed and variable windows, when to shrink, and when the technique does not apply.
8 questions · 10 min · +10 XP
Binary Search Quiz
The classic template, lower bound, overflow-safe mid, rotated arrays and binary search on the answer.
8 questions · 10 min · +10 XP
Strings Quiz
Immutability, StringBuilder, palindromes, reversing words and expand-around-center.
8 questions · 10 min · +10 XP
Linked List Quiz
Reversal, fast and slow pointers, cycle detection, dummy nodes and the gap trick.
8 questions · 10 min · +10 XP
Stack & Queue Quiz
LIFO vs FIFO, matching brackets, RPN, Min Stack and the monotonic stack.
8 questions · 10 min · +10 XP
Recursion & Backtracking Quiz
Base cases, the call stack, recursion trees and the choose–explore–unchoose template.
8 questions · 10 min · +10 XP
Binary Trees & BST Quiz
Traversals, DFS vs BFS, height, diameter, LCA and validating a BST.
8 questions · 12 min · +10 XP
Heaps & Priority Queues Quiz
Min-heap vs max-heap, Top K, Kth largest, merging sorted lists and the two-heap median.
8 questions · 10 min · +10 XP
Graphs Quiz
Adjacency lists, BFS vs DFS, islands, topological sort, union-find and Dijkstra.
8 questions · 12 min · +10 XP
Dynamic Programming Quiz
States, recurrences, memoization vs tabulation, coin change, LCS and knapsack.
8 questions · 12 min · +10 XP
Greedy Algorithms Quiz
When greedy works, interval scheduling, jump game, gas station and partition labels.
8 questions · 10 min · +10 XP
Bit Manipulation Quiz
Binary, AND/OR/XOR, shifts, the XOR single-number trick and n & (n − 1).
8 questions · 10 min · +10 XP