- 0of 0 votes
two arrays a and b of size n+2 and n, resp. The array b is obtained from a by removing two distinct elements, say x and y, and randomly shuffling the remaining ones.- pavel.em February 09, 2012 in United States
Given a and b, find the removed elements x and y. Do this in O(n) time and O(1) space.
| Report Duplicate | Flag | PURGE