会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
如海
Talk is cheap. Show me the code.
管理
2020年8月9日
【算法】斐波那契算法
摘要: from functools import lru_cache class Solution: @lru_cache(maxsize=None) def fib(self, n: int) → int: if n == 0: return 0 if n == 1: return 1 return s
阅读全文
posted @ 2020-08-09 15:09 如海
阅读(192)
评论(0)
推荐(0)
公告