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.
I consider this solution as the best in performance since all what you need, after manipulating the zeros, is to consider the first three elements of the array at maximum . Moreover, no need for high power computations.i.e. in worst situation you need to raise the first digit of first element to power 4;