Sokrati interview question

Given a list in python with all elements except one,paired. Find that one element.

Interview Answer

Anonymous

Feb 15, 2020

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.