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.
print the output ~~
I think there should be some rule by which we can filter out numbers in a quicker way than brute-force. But I also need to find that.
Looks simply but it's quite complicated.
The 'n' argument is the nth number that meets the requirements. Imagine it as an array with correct elements - [81, 512, 2401, 4913 and so on]. The 'n' is the index of number you have to return. For example, if the 'n' = 1 => [81, 512, 2401] - the correct result will be 81. (It should be n(0) => 81, but the author had a different vision) :)
Can you describe your problem more precisely? Do you mean the 'n' argument?
It is not an issue of the kata, maybe one of your code or from CW!
This comment is hidden because it contains spoiler information about the solution
Print the input, you will see which it is and maybe be able to correct your code. It is like debugging.
Tests do say you have failed but never why you failed... I am sorry for that but it is up to you to find the good code.
Did you think of possible corner cases?
There are no errors in the tests...
my eyes is blinking...
The instructions says: "In the case above the function should output a sorted 2D array." Your ouput should be sorted.
Hi Avinar. At the end in the instructions says: "As you have seen the solutions may have a value occurring only once." The combinations that you point out have 1 and -1 twice. Have a good day.