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