mirror of
				https://git.wolves.top/wolves/leetcode.git
				synced 2025-11-04 17:26:32 +08:00 
			
		
		
		
	init
This commit is contained in:
		
							
								
								
									
										6
									
								
								greed/lcs01.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								greed/lcs01.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
import math
 | 
			
		||||
 | 
			
		||||
def least_minutes(n: int) -> int:
 | 
			
		||||
    if n == 0:
 | 
			
		||||
        return 0
 | 
			
		||||
    return math.ceil(math.log2(n)) + 1
 | 
			
		||||
		Reference in New Issue
	
	Block a user