In the description we can read:
"Note: For a perfect power, there might be several pairs. For example 81 = 3^4 = 9^2, so (3,4) and (9,2) are valid solutions. However, the tests take care of this, so if a number is a perfect power, return any pair that proves it."
However it is not true for TestRandomNumbers(), where the solution with the lowest exponent is considered correct.
Examples:
Expected: (32768, 2)
But was: (2, 30)
This comment is hidden because it contains spoiler information about the solution
18987964267331664557
why?
count(board, r,c, dir[1]) will always return 0, as there should be no discs above the last dropped.
returns true for Sunday 1332
In the description we can read:
"Note: For a perfect power, there might be several pairs. For example 81 = 3^4 = 9^2, so (3,4) and (9,2) are valid solutions. However, the tests take care of this, so if a number is a perfect power, return any pair that proves it."
However it is not true for TestRandomNumbers(), where the solution with the lowest exponent is considered correct.
Examples:
Expected: (32768, 2)
But was: (2, 30)
Expected: (27, 2)
But was: (3, 6)
Your solution will return "AMEX" for any string beginning with "34" regardless its length. Should be (...||...)&&...
I've submitted this mess accidently.
7/3=2