Factorial
- Program for factorial of a number
- Legendre’s formula (Given p and n, find the largest x such that p^x divides n!)
- Count trailing zeroes in factorial of a number
- Factorial of a large number
- Primorial of a number
- Find maximum power of a number that divides a factorial
- Largest power of k in n! (factorial) where k may not be prime
- Check if a number is a Krishnamurthy Number or not
- Last non-zero digit of a factorial
- Count digits in a factorial using Logarithm
Mathematical Algorithms
Mathematical algorithms in Data Structures and Algorithms (DSA) are fundamental tools used to solve various computational problems efficiently. These algorithms leverage mathematical concepts and principles to optimize solutions for tasks such as sorting, searching, and graph traversal . By applying mathematical techniques, these algorithms aim to enhance performance, reduce complexity, and provide precise solutions in the realm of computer science and programming.