How many times is f() called when calculating f(10)?
发布于 2022-03-03 11:06:36
How many times is f() called when calculating f(10)?
int f(int x) { if(x <= 2) return 1 return f(x - 2) + f(x - 4) + 1 }
登录后免费查看答案
关注者
0
被浏览
49