Answers for "build a pile of cubes python"

0

build a pile of cubes python

def find_nb(m):
    total = 0
    n = 0
    
    while (total < m):
        n = n + 1
        total = total + n ** 3
        
    return n if total == m else -1
Posted by: Guest on April-20-2022

Python Answers by Framework

Browse Popular Code Answers by Language