Ad
  • Custom User Avatar

    Random tests always test powers of 10. There should be random tests with not-powers-of-ten. Or you could just refrain from input validation, in accordance with documented best practices.

  • Custom User Avatar

    Example solution is O(log n) and passes, which means description should specify O(log n) instead of O(1). Logarithmic time is in practice indistinguishable from constant time anyway.