递归算法向非递归如何转化?

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/30 15:39:41

递归算法向非递归如何转化?

斐波那契 不用迭代 很简单啊 :
int fib(int n){
if(n