you have to return the integer n such as π 3
π n 3 +(nβ1) 3 +(nβ2) 3 +...+1 3 =m if such a n exists or -1 if there is no such n.
OP has implemented the logic, it is basically summation of cubes of numbers from 1 to ... until it reaches or surpasses $m
$m
I'm looking atht explination and just don't understand how it works. I'm going to have to study the wiki for this one as well.
Loading collection data...
(
π
β
1
)
3
+
(
π
β
2
)
3
+
.
.
.
+
1
3
π
n
3
+(nβ1)
3
+(nβ2)
3
+...+1
3
=m if such a n exists or -1 if there is no such n.
OP has implemented the logic, it is basically summation of cubes of numbers from 1 to ... until it reaches or surpasses
$m
I'm looking atht explination and just don't understand how it works. I'm going to have to study the wiki for this one as well.