10. Party of Couples
My Approach
Time and Auxiliary Space Complexity
Code (C++)
class Solution{
public:
int findSingle(int n, int arr[])
{
int ans=0;
for (int i=0;i<n;i++)
{
ans^=arr[i];
}
return ans;
}
};Contribution and Support
Last updated