Draft
Factorial Recursive
52kutyel
Description:
Write the "Factorial" function recursively, without using a loop:
function factorial (n) { … }
A factorial is the product of a positive number and all the numbers below it.
So the factorial of 4 equals 4 x 3 x 2 x 1 = 24
.
The factorial of 1 equals 1.
Similar Kata:
Stats:
Created | Sep 24, 2016 |
Warriors Trained | 95 |
Total Skips | 0 |
Total Code Submissions | 211 |
Total Times Completed | 52 |
JavaScript Completions | 52 |
Total Stars | 0 |
% of votes with a positive feedback rating | 48% of 24 |
Total "Very Satisfied" Votes | 7 |
Total "Somewhat Satisfied" Votes | 9 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 16 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |