Back to courtyard
The Recursion Well · Spell · 6 min

fact · 1

Recursive factorial. One hidden test uses 1.

Lv 1· 22/22· 3/1· 3
  • Define fact() so every test passes

Base n<=1 return 1.

1
2
3
4
5
6
7
8
The stone is quiet.