Sollicitatievraag bij Dealertrack by Cox Automotive

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

Antwoord op sollicitatievraag

Anoniem

15 feb 2016

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