This website works better with JavaScript
首页
发现
帮助
注册
登录
wolves
/
leetcode
镜像自地址
https://git.wolves.top/wolves/leetcode.git
关注
1
点赞
0
派生
0
文件
工单管理
0
Wiki
目录树:
affa209d93
分支列表
标签列表
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