Commit 5b0b04e
Ensure factorial is calculated for 0 (#102)
Ensure a unique solution for res0. Without the check, both answers 0 and 1 pass the test.
Co-authored-by: James Santucci <[email protected]>1 parent 8bdde5e commit 5b0b04e
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments