Ad
  • Default User Avatar

    But it is an effective solution and have a constant time, when the traditional method has a linear time. So it is better, though the comprehensibility isn't good without comments, but perfomance is actually better

  • Default User Avatar

    It is actually quite straightforward, if you know geometric sequence and logarithm base change formulas.