DSA learning path
Math & Number Theory
GCD, prime sieves, modular arithmetic and fast exponentiation.
Problems in this path
- Greatest Common Divisor and LCMOpen
Easy · Euclidean Algorithm - Count Primes with a SieveOpen
Medium · Sieve of Eratosthenes - Fast Modular ExponentiationOpen
Medium · Binary Exponentiation - Primality TestOpen
Easy · Trial Division to Square Root - Prime FactorisationOpen
Medium · Repeated Trial Division - Trailing Zeroes in FactorialOpen
Easy · Count Powers of Five - Pascal Triangle RowOpen
Easy · Binomial Recurrence - Count Positive DivisorsOpen
Easy · Divisor Pairing - Extended Euclidean CoefficientsOpen
Hard · Extended Euclidean Algorithm - Euler Totient FunctionOpen
Medium · Prime-Factor Product