Pregunta de entrevista
Entrevista de Senior Data Scientist
-
MetaGiven a list, create a new list that does not include the duplicates of the original list.
Respuesta
Respuestas de entrevistas
3 respuestas
▲
0
▼
a = old list b = new list code : a = set(a) b = list(a)
Anónimo en
▲
0
▼
Maybe they were asking to do it in-place. In that case, switch the duplicate elements to the end.
Andre en
▲
0
▼
python 4 lines of code.
Anónimo en
Añadir respuestas o comentarios
Para publicar un comentario sobre esto, inicia sesión o regístrate.