2019年7月15日
摘要: 调用自身; 明确的结束条件,递归出口; 简洁但低效; 调用过程中系统开销大,每层递归需开辟栈储存局部变量和返回点,递归次数过多栈易溢出。 辗转相除: 循环实现: Function1: public static int gcd(int m, int n){ while (true){ if ((m  阅读全文
posted @ 2019-07-15 15:30 Zimsky 阅读(166) 评论(0) 推荐(0) 编辑