上課用
2009年6月15日 星期一
Lab Recursive method
Write a recursive method to compute Fibonacci series.
Hint:
1.
fib(n)=fib(n-1)+fib(n-2)
2.
public static long fib(int n)
fib(1)
fib(5)
fib(10)
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
JAVA課
YJ Chang's
網誌存檔
►
2010
(2)
►
2月
(2)
▼
2009
(55)
▼
6月
(8)
我有話要說
http://sofree.cc/intro-wordpress-2-8/http://cjhtec...
Lab Hanoi Tower
Lab Recursive method
Lab Factorial
Homework 6-1-2009 Modular Sorting
"Lab Array"
Lab: Static Method II
►
5月
(14)
►
4月
(7)
►
3月
(23)
►
2月
(3)
上課用
載入中…
沒有留言:
張貼留言