You are viewing a single comment's thread. Return to all comments →
C# solution
public static int lonelyinteger(List<int> a) { return a.Find(x => a.Count(j => x == j) == 1); }
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 →
C# solution