Practice Problems

Problem of the Day: Integer Square Root — keep your streak alive!

Practice Problems

#ProblemTopicsDifficulty
148 The Next Prime math number-theory 1500
158 Modular Inverse math 1500
161 Binomial Coefficient math combinatorics 1500
166 Distributing Identical Coins math combinatorics 1500
191 Longest Zigzag Subsequence dp greedy 1500
194 The K-th Missing Number binary-search 1500
205 Fewest Coins dp 1500
206 Counting Coin Combinations dp 1500
208 Decode the Message strings dp 1500
209 Exact Subset Sum dp 1500
214 Paths Around the Walls dp 1500
236 Two Teams bfs graphs 1500
246 Knight's Journey bfs graphs 1500
251 Largest Proper Subtree trees 1500
252 Lowest Common Ancestor trees 1500
260 Plausible Stack Story stack 1500
262 Double or Add One math greedy 1500
263 The Two Jugs math 1500
281 Classic Nim math bitwise games 1500
332 Area of a Polygon geometry 1500
336 Three That Sum to T sorting two-pointers 1500
341 Anagram Windows strings sliding-window 1500
410 Grand Digit Total math 1500
413 All the Gaps math sorting 1500
414 Sum of Pair Minimums math sorting 1500
415 Sum of Pair Maximums math sorting 1500
457 Fairest Split bitwise brute-force 1500
464 Nearest Smaller to the Left stack 1500
471 Balanced Stretch prefix-sums 1500
472 Divisible Subarray Sums math prefix-sums 1500
475 Ones with K Flips sliding-window two-pointers 1500
477 The Widest Container two-pointers 1500
485 Insert an Interval intervals 1500
496 Longest Border strings 1500
497 Rectangle Sum Queries prefix-sums 1500
538 Cheapest Network graphs greedy union-find 1500
589 Prime Power in a Factorial number-theory 1500
603 All the Borders strings kmp 1500
617 Longest Mountain two-pointers 1500
631 Counting Routes in a DAG dp graphs 1500
638 Strings Without Adjacent Ones dp matrix-exponentiation 1500
657 Strictly Climbing Digits digit-dp 1500
667 Cayley's Forest combinatorics graphs 1500
685 Minimize the Worst Delay greedy sorting 1500
710 Maximum Product Subarray dp 1500
990 Maximum Sum Increasing Subsequence dp 1500
82 Smallest Period strings 1600
115 Count the Inversions divide-and-conquer sorting 1600
156 Euler's Totient math number-theory 1600
160 Geometric Series Modulo math 1600