Avatar ·

The amount of cubes with recursion - finding the best amount of cubes

📁 Advanced Python Topics, AI

   sumofcubes  ( n ):   if  n ==  0 :   return  sumofcubes (n - ( int  (n ** ( 1 / 3 ))) **  3 )   print  (( int  (n ** ( 1 / 3 )) **  3 ), end =  '' ') sumofcubes ( int  ( input  ()))   

Important! The task should be solved by a recursive function.

The task is to represent