The Haskell test suite does not enforce the correctness for n > 254 case, so I accidentally submitted an incorrect solution and it got accepted.
This comment is hidden because it contains spoiler information about the solution
I suppose if we installed bignum on the backend then we could do a JS solution.
Feel free to make a pull request :D
https://github.com/Codewars/codewars-runner/
Loading collection data...
The Haskell test suite does not enforce the correctness for n > 254 case, so I accidentally submitted an incorrect solution and it got accepted.
This comment is hidden because it contains spoiler information about the solution
I suppose if we installed bignum on the backend then we could do a JS solution.
Feel free to make a pull request :D
https://github.com/Codewars/codewars-runner/
This comment is hidden because it contains spoiler information about the solution