Concept Flow - Two Non Repeating Elements in Array Using XOR
Start with array
XOR all elements
→Get XOR of two unique numbers
Find rightmost set bit in XOR result
Divide elements into two groups based on set bit
XOR elements in each group separately
Result: two unique numbers found
We XOR all elements to get combined XOR of two unique numbers, find a set bit to split elements into two groups, then XOR each group to find the unique numbers.
