Formula
Sum of 1st N Numbers :
Count trailing zeroes in factorial of a number:
Modulo Property
Horner’s Method for Polynomial Evaluation
// Evaluate value of 2x3 - 6x2 + 2x - 1 for x = 3
Input: poly[] = {2, -6, 2, -1}, x = 3
Output: 5
// Evaluate value of 2x3 + 3x + 1 for x = 2
Input: poly[] = {2, 0, 3, 1}, x = 2
Output: 23Linear Diophantine Equations
Common Divisors of Two Numbers
Check if a point lies inside circle
Last updated