1/3 Test Cases Passed
You need to earn 2 or 3 stars in order to submit.
Test Cases (0/3)
-
factorial(3) to return 6
-
factorial(5) to return 120
-
factorial(10) to return 3628800
1/3 Test Cases Passed
You need to earn 2 or 3 stars in order to submit.
factorial(3) to return 6
factorial(5) to return 120
factorial(10) to return 3628800
Click “Run” to test how many Test Cases your code will pass.
Click “Submit” to test how many Test Cases your code will pass.
Have a look at the top-ranking players and watch how their solutions are voted as best practices for this challenge.
You can only view and vote for other players’ solutions once you have finished this challenge.