Leetcode - 509. Fibonacci Number
此篇文章為我的解題紀錄,程式碼或許並不是很完善
Leetcode - 509. Fibonacci Number
解題思路
使用recursive的方法~一直呼叫自己直到n
為1或是0
我滴程式碼
1 | class Solution { |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments