+ 1

In array

Find Unique Send Feedback Given an integer array of size 2N + 1. In this given array, N numbers are present twice and one number is present only once in the array. You need to find and return that number which is unique in the array. Note : Given array will always contain odd number of elements. Input format : Line 1 : Array size i.e. 2N+1 Line 2 : Array elements (separated by space) Output Format : Unique element present in the array Constraints : 1 <= N <= 10^3 Sample Input : 7 2 3 1 6 3 6 2 Sample Output : 1

5th Sep 2019, 11:23 AM
Shahrukh Khan
Shahrukh Khan - avatar
11 Answers
+ 4
my try https://code.sololearn.com/c7XQm5TmOxHE/?ref=app it is up to you but in my opinion there is nothing worse than reading the code before trying exhausted
6th Sep 2019, 3:37 PM
ABADA S
ABADA S - avatar
+ 4
where is the error
6th Sep 2019, 4:13 PM
ABADA S
ABADA S - avatar
+ 4
I didn't understand
6th Sep 2019, 5:38 PM
ABADA S
ABADA S - avatar
+ 3
hi, the rule is that you first should do a try until you stuck. Then show this try here and you will get support.
5th Sep 2019, 3:07 PM
Lothar
Lothar - avatar
+ 1
What ?
5th Sep 2019, 11:50 AM
Shahrukh Khan
Shahrukh Khan - avatar
+ 1
In which language should be this program?
5th Sep 2019, 10:47 PM
Marina Vasilyova
Marina Vasilyova - avatar
+ 1
In java
6th Sep 2019, 1:47 AM
Shahrukh Khan
Shahrukh Khan - avatar
+ 1
There is a error friend and yes I tried a lot
6th Sep 2019, 4:12 PM
Shahrukh Khan
Shahrukh Khan - avatar
+ 1
This is for the first time that I have posted next I will upload the code
6th Sep 2019, 4:12 PM
Shahrukh Khan
Shahrukh Khan - avatar
0
Can you write it's code
5th Sep 2019, 2:32 PM
Shahrukh Khan
Shahrukh Khan - avatar
0
Output is coming 2 as per your input
6th Sep 2019, 4:37 PM
Shahrukh Khan
Shahrukh Khan - avatar