Pregunta de entrevista de Dealertrack by Cox Automotive

If you have an integer array with duplicate values, how will you remove the duplicates.

Respuesta de la entrevista

Anónimo

15 de feb de 2016

int[] s = { 1, 2, 3, 3, 4}; int[] q = s.Distinct().ToArray();