Will anything other than O(1) be accepted?

  • 0

    Will anything other than the O(1)/sqrt solution be accepted as a valid solution? I just wanted to play around with other solutions; I've got mine down to O(n) and it still times out.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.