Suppose that we have two List<int>‘s
List<int> list1 = new List<int> { 1, 3, 5, 7 , 9, 11, 18 };
List<int> list2 = new List<int> { 2, 3, 5, 7 , 9, 10, 20, 26, 36 };
question how can i produce;
intersect {3, 5, 7, 9 }
list1Decomp { 1, 11, 18 }
list2Decomp { 2, 10, 20, 26, 36 }
thanks in advance.
1 Answer