标签:递归
class program { static void Main(string[] args) { int i; i = x(x(8)); } static int x(int n) { if (n <= 3) return 1; else return x(n - 2) + x(n - 4) + 1; } }
递归算法x(x(8))需要调用几次函数x(int n)?

本文出自 “走得远.看的深” 博客,谢绝转载!
标签:递归
原文地址:http://2462852817.blog.51cto.com/11224080/1794727