Given a list in python with all elements except one,paired. Find that one element.
Anonymous
First I started with a edge case that if total number of elements are even,then there is no unpaired element. Then I looped over the list and found out the count of each element with python inbuilt count function. Return the element with count = 1.
Check out your Company Bowl for anonymous work chats.