You are viewing a single comment's thread. Return to all comments →
C# solution 2
public static int getTotalX(List<int> a, List<int> b) => Enumerable .Range(1, 101) .Where(i => b.All(b1 => b1 % i == 0)) .Where(m => a.All(a1 => m % a1 == 0)) .Count();
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
C# solution 2