Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: XOR Property
Test your understanding
Check Your Understanding
What happens when you XOR a number with itself?
- A.You get 0
- B.You get the number doubled
- C.You get -1 (all bits set)
- D.You get the bitwise complement