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

View File

@@ -0,0 +1,9 @@
int fast_multiply(int a,int b,int c){
int res=0;
while(b){
if(b&1)res+=a,res%=c;
a+=a,a%=c;
b>>=1;
}
return res;
}