YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
|
|
@ -2,8 +2,6 @@ int fac_aux(int n, int acc) {
|
|||
return n < 1 ? acc : fac_aux(n - 1, acc * n);
|
||||
}
|
||||
|
||||
/*Handles negative n, Abhishek Ghosh, 1st November 2017*/
|
||||
|
||||
int fac_auxSafe(int n, int acc) {
|
||||
return n<0 ? -1 : n < 1 ? acc : fac_aux(n - 1, acc * n);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue