My Blog List

[Leetcode Solution] Single Nubmer

Analysis

  • With XOR operator we can X xor Y xor Y = X
  • Perform XOR for all the elements will result into the single number

Code

No comments:

Post a Comment

Enter you comment