Pergunta de entrevista da empresa AstrumU

Return a list of individual objects from a list that contains duplicate objects.

Resposta da entrevista

Sigiloso

26 de abr. de 2023

Each object had a unique id so use a set to store these id's and for each object in original list, check if id is in set; if not, add object to unique list and id to set.