I have solved #103 and #105, but I have a hard time understanding #106, specifically where does the number 25 come from?
If we are talking about two disjoint subsets with equal number of elements, then
1-elem vs. 1-elem: there are 4 x 3 = 12 comparisons
2 vs. 2: C(4, 2) = 6 comparisons
If we include disjoint subsets with non-equal number of elements, then
1 vs. 2: C(4, 1) x C(3, 2) = 12
1 vs. 3: C(4, 1) = 4
What am I missing here? Thanks in advance.