你需要先理解递归,然后才能理解递归。
【 在 PhevosCao 的大作中提到: 】
: 自己写递归程序很容易,但是别人写得就看不大懂。
:
: public static int f(int x, int y) {
: if (y == 0) return 0;
: if (y % 2 == 0) return f(x + x, y / 2);
: return f
: ..................
发自「今日水木 on iPhone 20 plusplus」
--
FROM 120.245.130.*