Ad
  • Default User Avatar

    If you use an O(log(n)) algorithm, you can even handle the case where n is three million.
    So there is no need to decrease the max number since the purpose of this kata is to tell you that O(log(n)) algorithm.