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.
This comment is hidden because it contains spoiler information about the solution
Thanks!
Codewars supports Node 10, so BigInteger is available for JS on Codewars, just this kata was not ported to Node 10.
It does not change much tho, because even BigInteger won't help you here. Resulting numbers are so large, that if you were to perform actual exponentiation, you would run out of memory. Besides, this problem is solvable using small integers.
Thanks!