Concept Flow - Two Non Repeating Elements in Array Using XOR
Start with array
Compute XOR of all elements
Find rightmost set bit in XOR result
Divide elements into two groups based on set bit
Compute XOR of each group separately
Result: two unique non-repeating elements
We first XOR all elements to get XOR of two unique numbers. Then find a set bit to separate elements into two groups and XOR each group to find the unique elements.
