DSA Day 50/100
Topic: Mathematical
Questions Successfully Completed: 1
1) Addition under ModuloEasy
Addition under Modulo
public static long sumUnderModulo(long a, long b){
// ((a%g)+(b%g))%g
long g = 1000000007;
long q = a%g;
l...
preetikaprakash.hashnode.dev1 min read