List<int> num = new List<int>{2,4,9,3,7};List<int> a = new List<int>{2,3,4,9};List<int> b = new List<int>{2,3,4,5};a 与 num的交集 结果= 4, b 与 num 的交集结果 = 3我用except 似乎不对,错在哪里了呢?num.Except(a).Count() == 1
num.Execpt(b).Count() == 2
num.Execpt(b).Count() == 2
我用except 似乎不对,错在哪里了呢?num1.Except(b).Count() > 1
num2.Except(b).Count() > 1
(num1.Count-num1.Except(b).Count())>=3
num.Sort();
int count1=num.Intersect(a).Count();
int count2 = num.Intersect(b).Count();
不用排序的