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

Stats:

CreatedOct 9, 2016
PublishedOct 9, 2016
Warriors Trained1593
Total Skips23
Total Code Submissions6550
Total Times Completed1084
JavaScript Completions830
C# Completions273
Total Stars9
% of votes with a positive feedback rating83% of 228
Total "Very Satisfied" Votes167
Total "Somewhat Satisfied" Votes44
Total "Not Satisfied" Votes17
Total Rank Assessments15
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • pmarek Avatar
  • Dentzil Avatar
  • hobovsky Avatar
Ad