Question: You are given an integer array arr [ ] of size n , representing n number of people in a party, each person is denoted
You are given an integer array arr of size representing number of people in a party, each person is denoted by an integer. Couples are represented by the same number ie: two people have the same integer value; it means they are a couple. Find out the only single person in the party of couples.
NOTE: It is guaranteed that there exists only one single person at the party.
Example :
Input:
arr
Output:
Explaination: Only the number is single.
Example :
Input:
arr
Output:
Explaination: is the only single.
give code in python language.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
