+ 4
small challenge : factorial
Make the shortest code to find the factorial of an integer . use Any language , no rules . here it is i think the shortest one https://code.sololearn.com/cD9piu7S4Xz6/#cpp
12 Respostas
+ 4
Here, my smallest solution in Ruby..
https://code.sololearn.com/c22tD4rpWh6I/#rb
+ 2
https://code.sololearn.com/czAFSwbs9SAE/?ref=app
+ 2
https://code.sololearn.com/Wxk7KL58inWk/?ref=app
+ 1
this is better I think in c++
https://code.sololearn.com/cVvI3t3BN8Zz/?ref=app
+ 1
https://code.sololearn.com/c5YhvYfwl0UT/?ref=app
+ 1
Haskell:
f n=foldl(*)1[1..n]
0
The shortest :)
https://code.sololearn.com/cTHebeW576sK/?ref=app
0
https://code.sololearn.com/cLwzduOxDzwh/?ref=app
- 1
@petr Nope