Lonely Integer

  • + 0 comments
    return a.GroupBy(x => x)
                    .Where(g => g.Count() == 1)
                    .Select(g => g.Key)
                    .FirstOrDefault();