mirror of
https://github.com/Hizenberg469/Algorithms-snippets.git
synced 2026-04-19 22:52:23 +03:00
Binomial Coefficient
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
int invFac[MAX_N];
|
||||
void inverse_factorial(){
|
||||
|
||||
invFac[0] = invFac[1] = 1;
|
||||
|
||||
for(int i = 2 ; i <= MAX_N ; i++ ){
|
||||
invFac[i] = (inverse(i)*invFac[i-1])%M;
|
||||
}
|
||||
int invFac[MAX_N];
|
||||
void inverse_factorial(){
|
||||
|
||||
invFac[0] = invFac[1] = 1;
|
||||
|
||||
for(int i = 2 ; i <= MAX_N ; i++ ){
|
||||
invFac[i] = (inverse(i)*invFac[i-1])%M;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user