Skip to content

Conversation

jhnemogap
Copy link

Fixes #

* @description Definition obtained from https://es.wikipedia.org/wiki/Coeficiente_binomial
*/

const factorial = (number) => number < 2 ? 1 : factorial(number - 1) * number;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ponle memoria a tu factorial para no hacer cálculos repetidos.

JaimeEV added a commit to JaimeEV/challenge-javascript-05 that referenced this pull request Aug 6, 2020
montycode added a commit to montycode/challenge-javascript-05 that referenced this pull request Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants