Practice Problems

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

Practice Problems — math

#ProblemTopicsDifficulty
159 Last K Digits of a Power math 1400
162 Routes Across a Grid math combinatorics 1400
163 Catalan Number math combinatorics 1400
169 Last Digit of Fibonacci math 1400
304 Days Apart math implementation 1400
345 The N-th Ugly Number math dp 1400
358 Round-Robin Printer math implementation 1400
408 The Infinite Digit String math 1400
419 March to the Median math sorting 1400
452 The Two Missing Numbers math 1400
460 Two Equal Sets math greedy 1400
636 Painting the Fence math combinatorics 1400
858 Sum of Fourth Powers Modulo math 1400
97 Sum over All Subarrays math prefix-sums 1500
116 Minimum Swaps to Sort math sorting 1500
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
262 Double or Add One math greedy 1500
263 The Two Jugs math 1500
281 Classic Nim math bitwise games 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
472 Divisible Subarray Sums math prefix-sums 1500
156 Euler's Totient math number-theory 1600
160 Geometric Series Modulo math 1600
164 Count the Derangements math combinatorics 1600
174 Perfect Power math 1600
331 Farthest by Manhattan math geometry 1600
380 Number Spiral math 1600
409 Counting a Digit math 1600
411 Numbers That Contain D math 1600
455 Two Peaceful Knights math combinatorics 1600
473 Range Products, Zeros Included math prefix-sums 1600
520 Independent Cycles math graphs union-find 1600
268 Range GCD Queries math sparse-table 1700
412 All Digits Different math 1700
436 Two Remainder Conditions math number-theory 1700
692 Lucas Numbers Modulo math matrix-exponentiation 1700
693 A 2-3 Recurrence math matrix-exponentiation 1700
694 A 3-2 Recurrence math matrix-exponentiation 1700
695 A 1-6 Recurrence math matrix-exponentiation 1700
713 Recurrence f=a+2b math matrix-exponentiation 1700
715 Recurrence f=4a+b math matrix-exponentiation 1700
716 Fibonacci Shifted math matrix-exponentiation 1700
718 Recurrence f=2a+2b math matrix-exponentiation 1700
719 Recurrence f=6a-8b math matrix-exponentiation 1700