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.
If you are doing it like i think you are, with big numbers, raising them to a power and multiplying them is not O(1), because they are no longer stored in a 32 or 64 bit integer.
I don't know if this kata has been done before but i have one.
It's making a function that calculates the result of a ↑(n) b,
the hyper-operation of order n between a and b.
a ↑(1) b = a + b
a ↑(2) b = a * b
a ↑(3) b = a ^ b
and so on...
taking into account that
a * b = a + a + ...(b times) + a, and
a ^ b = a * a * ...(b times) * a