NeoAlgo icon indicating copy to clipboard operation
NeoAlgo copied to clipboard

Unique Number-II

Open mahimagoyalx opened this issue 6 years ago • 4 comments

🚀 Feature

Given an array A containing 2N+2 positive, out of which 2N numbers exist in pairs whereas the other two number occur exactly once and are distinct. Find the other two numbers (in ascending order).

Sample Input: 1 2 4 2 1 3

Sample Output: 3 4

Have you read the Contributing Guidelines on Pull Requests?

Yes

Motivation

I want to solve this issue as a part of CH20.

Pitch

It is a quick way to find the two non-repeating elements in an array of repeating elements using bit manipulation other than sorting.

mahimagoyalx avatar Sep 12 '20 03:09 mahimagoyalx

I would like to implement this in C++ as a part of CH20. @SKAUL05 @atarax665 @Abhijit2505 @iamrajiv @HarshCasper Please assign me this issue. Thank you!

mahimagoyalx avatar Sep 12 '20 03:09 mahimagoyalx

I would like to implement this in C. @HarshCasper @Abhijit2505 @atarax665 @SKAUL05.

ishi0301 avatar Sep 12 '20 04:09 ishi0301

I would like to try this in java for CH20.

ritvij14 avatar Sep 12 '20 04:09 ritvij14

This is duplicate issue, it already exists. #922

narayan2111 avatar Sep 12 '20 04:09 narayan2111