We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Solution in Python ||Easy and Simple to understand
Please upvote to help others .
Withoutusingxoroperator# a.sort()# for i in range(0,len(a)-1,2):# if (a[i] == a[i+1]):# continue# else:# return a[i]# return a[len(a)-1]#Using XOR operatorresult=0foriina:result^=ireturnresult
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
Solution in Python ||Easy and Simple to understand
Please upvote to help others .