**Input:** Array, arrA[] with a missing number and Range

**Output : **missing number

**Example**:

int A[] = { 1, 2, 7, 6, 3, 4 }; int range = 7; Output: MIssing No is :5

In our earlier approach ” Click Here ” we have seen the method where we had calculated the Sum of numbers, but this approach might fail when number goes beyond the integer range.

XOR method will better solution in that case.

**Approach: – Time Complexity -O(N), Space Complexity – O(1)**

Read moreFind a Missing Number From a Sequence of Consecutive Numbers | XOR Method