Given an array of size 2n+2 of which there are n pairs and remaining two are unique. How to find them in O(n) time and constant space.
1 year ago
Feel free to contribute, however it will be moderated to curb spams.
Given an array of size 2n+2 of which there are n pairs and remaining two are unique. How to find them in O(n) time and constant space.
No comments:
Post a Comment