Retired
Factorial Factory (retired)
5,008 of 8,672galafik
Description:
In mathematics, the factorial of integer 'n' is written as 'n!'. It is equal to the product of n and every integer preceding it. For example: 5! = 1 x 2 x 3 x 4 x 5 = 120
Your mission is simple: write a function that takes an integer 'n' and returns 'n!'.
You are guaranteed an integer argument. For any values outside the positive range, return null
, nil
or None
.
Note: 0! is always equal to 1. Negative values should return null;
For more on Factorials : http://en.wikipedia.org/wiki/Factorial
Recursion
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Nov 21, 2013 |
Warriors Trained | 11093 |
Total Skips | 544 |
Total Code Submissions | 31994 |
Total Times Completed | 8672 |
JavaScript Completions | 5008 |
CoffeeScript Completions | 159 |
Python Completions | 2744 |
Ruby Completions | 926 |
C# Completions | 230 |
Total Stars | 82 |
% of votes with a positive feedback rating | 88% of 742 |
Total "Very Satisfied" Votes | 584 |
Total "Somewhat Satisfied" Votes | 137 |
Total "Not Satisfied" Votes | 21 |