This website works better with JavaScript
首頁
探索
說明
註冊
登入
wolves
/
leetcode
镜像来自
https://git.wolves.top/wolves/leetcode.git
關註
1
讚好
0
複刻
0
Files
問題管理
0
Wiki
目錄樹:
124c7332d8
分支列表
標籤列表
main
leetcode
/
greed
/
lcs01.py
lcs01.py
118 B
文件歷史
原始文件
1
2
3
4
5
6
import math
def least_minutes(n: int) -> int:
if n == 0:
return 0
return math.ceil(math.log2(n)) + 1