Graph, Number Theory, String Hashing Algo added

This commit is contained in:
2023-11-12 19:31:52 +05:30
parent 1abfa41674
commit 6d69543289
10 changed files with 237 additions and 0 deletions

4
Number Theory/modSub.cpp Normal file
View File

@@ -0,0 +1,4 @@
template<typename T>
T modSub(T a,T b,T M=(T)1e9+7){
return (M+((M+a%M)%M-(M+b%M)%M))%M;
}