Ad
  • Custom User Avatar

    Probably it's not O(n) as you think.

  • Custom User Avatar

    Could you be more specific? If test cases were wrong, there would be many issues open, but there aren't.

    What language are you using? Which input fails? And what do you think it should return?