You are viewing a single comment's thread. Return to all comments →
group the numbers find the group that has only one element first .Single gets the IGrouping second .Single gets the int from that Grouping.
return a.GroupBy(i => i).Where(i => i.Count() ==1).Single().Single();
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
group the numbers find the group that has only one element first .Single gets the IGrouping second .Single gets the int from that Grouping.