Question d’entretien chez Sokrati

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

Réponse à la question d'entretien

Utilisateur anonyme

15 févr. 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.