Say you are given an array which has all duplicate members except one, which out this non-duplicate member.
Function to find index of non-duplicate member:
int findNonDuplicate(int A,int n)
if(A!=A && A==A)
Say you are given two arrays where second array is duplicate with one missing element. What should be the best possible way to find that missing element -
Missing Element: 2
Forgot Your Password?
2018 © Queryhome