第 5 章介绍了划分问题、递归函数到迭代函数的转换(我可以向您保证,这非常有趣)以及阶乘和斐波纳级数的实现。
Chapter 5 deals with partitioning problems, converting recursive functions to iterative functions (it's fun, I assure you), and more factorial and Fibonacci series implementations.
他接下来将这个函数应用在斐波那契数列生成器上。
如果你运行这一个版本的斐波那契函数,你会发现比原来那个版本要快得多。
If you run this version of Fibonacci and compare it with the original, you will find that it is much faster.
应用推荐