单选题
计算机
题号 #2366855
求整数 n(n≥0)阶乘的算法如下,其时间复杂度是
int fact(int n)
{
if (n<=1)return 1;
return n*fact(n-1);
}
参考答案
B
答案解析
暂无解析
你可能感兴趣的试题
A.5
B.7
C.8
D.11