Files
leetcode/greed/lcs01.py
2025-09-15 21:12:04 +08:00

7 lines
118 B
Python

import math
def least_minutes(n: int) -> int:
if n == 0:
return 0
return math.ceil(math.log2(n)) + 1