You are viewing a single comment's thread. Return to all comments →
My asnwer C#
int pairs = 0; ar.Sort(); for (int i = 0; i < n - 1; i++) { if (ar[i] == ar[i + 1]) { pairs++; i++; } } return pairs;
Seems like cookies are disabled on this browser, please enable them to open this website
Sales by Match
You are viewing a single comment's thread. Return to all comments →
My asnwer C#