How can this be categorized as Medium difficulty?

  • 0

    If this is not a hard question, I dont know what is. I don`t think anyone less than an expert on bit manipulations can fully code this solution in a white board interview (talking about solving it at linear time and constant space of course).

Log in to reply

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