Bit Manipulation - Find Two Missing Numbers
You are given an array containing
n-2 distinct integers from the range 1 to n. Exactly two numbers are missing from the array. Which algorithmic approach guarantees finding these two missing numbers in O(n) time and O(1) extra space?