📄️ Binary Exponentiation
Binary Exponentiation is also known as Exponentiation by Squaring.
📄️ Sieve of Eratosthenes
Sieve of Eratosthenes is a way of finding all prime numbers up to N (inclusive).
Welcome to our Number Theory tutorial page for LeetCode problems! Number theory is a branch of mathematics that deals with the properties and relationships of integers, which is very important in computer science. This tutorial will cover a range of topics in number theory that are commonly used to solve problems on LeetCode. We will be focusing on important algorithms and techniques such as modular arithmetic, prime numbers, gcd and more.
Binary Exponentiation is also known as Exponentiation by Squaring.
Sieve of Eratosthenes is a way of finding all prime numbers up to N (inclusive).