Lonely Integer

  • + 0 comments

    C# solution

    public static int lonelyinteger(List<int> a)
        {
            return a.Find(x => a.Count(j => x == j) == 1);
        }