Missing Numbers

  • + 0 comments

    C#:

        public static List<int> missingNumbers(List<int> arr, List<int> brr)
    {
        foreach (int number in arr)
        {
            brr.Remove(number);
        }
    
        brr.Sort();
        var hashSet = new HashSet<int>(brr);
    
        return hashSet.ToList();
    }
    

    }