This is a bad question

  • 0

    This is trivial if you understand bitwise operations, and as far as I know, impossible to solve in O(1) space if you don't. Since bitwise operations don't come up often in actual programming, I think this problem is bad, as either an interview question or an intellectually interesting brain-teaser.

Log in to reply

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