LIVE: Microsoft Announces The New Xbox (MSFT)
-
[image: xbox announcement]Microsoft is about to announce its next video
game console, a new and improved Xbox.
The announcement comes at an interesting ...
13 minutes ago
I hope this does the job
ReplyDeleteint missing ( int * arr, int n) {
int ans= 0, tmp = 0, i =0;
for (i = 0; i < n ; i++) {
tmp^=i;
ans^=arr[i];
}
tmp^=i;tmp^=(i+1);
return tmp^ans;
}
Sorry for the unformatted code. I don't know how to post formatted code on blogspot.
How about easy solution using Bit Array
ReplyDelete