Ad
  • Custom User Avatar

    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;