The description says to check if the number can be written as the sum of two cubes in two different ways, there's nothing to suggest that it can only be written in two ways.
Personally, onet thing I do when I'm not provided enough context with code wars is to try it on my own machine and try to debug it from there. It really helps.
The description says to check if the number can be written as the sum of two cubes in two different ways, there's nothing to suggest that it can only be written in two ways.
Personally, onet thing I do when I'm not provided enough context with code wars is to try it on my own machine and try to debug it from there. It really helps.
This comment is hidden because it contains spoiler information about the solution