7 kyu
Fac Recursion (Pest control - find the bugs and fix them)
830 of 1,084pmarek
Description:
The code is a recursive attempt in calculating the result of a factorial function.
I.e. the result of 3! (Factorial of 3) is 3x2x1 = 6.
In case of 0! the result is 1 and in case of a negative factorial the result should be 0.
The goal is to find the bugs in the sourcecode and fix them (play a little pest control).
Recursion
Debugging
Similar Kata:
Stats:
Created | Oct 9, 2016 |
Published | Oct 9, 2016 |
Warriors Trained | 1593 |
Total Skips | 23 |
Total Code Submissions | 6550 |
Total Times Completed | 1084 |
JavaScript Completions | 830 |
C# Completions | 273 |
Total Stars | 9 |
% of votes with a positive feedback rating | 83% of 228 |
Total "Very Satisfied" Votes | 167 |
Total "Somewhat Satisfied" Votes | 44 |
Total "Not Satisfied" Votes | 17 |
Total Rank Assessments | 15 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |