All you need to save time :p
- FAST I/O to scan Integers
- GCD - EUCLID'S and EXTENDED EUCLID'S ALGORITHM
- EULER TOTIENT FUNCTION
- MODULAR EXPONENTIATION
- OVERFLOW MULTIPLICATION
- MODULAR INVERSE
- MILLER RABIN PRIMALITY TEST
- SOLUTIONS OF LDE
- DISJOINT SUBSET (DS) - setup, union and root
- KMP STRING MATCH ALGORITHM
- Z ALGORITHM
- MATRIX MULTIPLICATION