题解 | #阶乘#
阶乘
http://www.nowcoder.com/practice/39fcf876fab34fe8afc298de10a1e112
{"css":"","js":"function _factorial(number) {\n // 补全代码\n if(number === 1) return 1;\n return number * _factorial(number - 1)\n}","html":"","libs":[]}
确认base case是number为1的时候返回就可以写出来了