Pregunta de entrevista de Sokrati

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

Respuesta de la entrevista

Anónimo

15 de feb de 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.