You are viewing a single comment's thread. Return to all comments →
in C# public static int lonelyinteger(List a) {
var cc = a.GroupBy(x => x).ToDictionary(g => g.Key, g => g.ToList()); var dd = cc.Where(x => x.Value.Count == 1).ToList(); return dd[0].Key;
}
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 →
in C# public static int lonelyinteger(List a) {
}