Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The description of the kata or the tests need to be corrected.
To me, the kata asks to check if a number can be written as the sum of two cubes in EXACTLY two ways. But if we test for EXACTLY two pairs, we fail the tests. The tests consider correct a number that can be written as the sum of two cubes in AT LEAST two ways.
I may be reading the text wrong, but the number has to be written as the sum of cubes in two ways. n=a^3+b^3=c^3+d^3, where a,b,c,d are positive and different.
From what you are saying, for 46163 you've only managed to find a pair of numbers that satisfy that condition
Mednoob, thank you for your reply!
This comment is hidden because it contains spoiler information about the solution