Dealertrack Interview Question: If you have an integer array ... | Glassdoor

Interview Question

Entry Level Programmer Interview Mississauga, ON (Canada)

If you have an integer array with duplicate values, how

  will you remove the duplicates.

Interview Answer

1 Answer


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

meghna on Feb 15, 2016

Add Answers or Comments

To comment on this, Sign In or Sign Up.