依旧是典型的斐波那契数列问题两种方法,递归调用和迭代。 提交后两者的运行时间相差一百多倍 class Solution { public: int rectCover(int number) { if(number<=3)return number; //return rectCover(number-1)+rectCover(number-2); int a,b,c; a=2;b=3; for(int i=4;i<=number;++i){ c=a+b; ...