305. Common to All Three
Three lists of integers. Print every value that appears in all three, each
once, in increasing order. If there is none, print None.
Duplicates within a list do not matter: appearing twice in one list is still appearing in it.
Build a set from the first list, a set from the second, and then walk the third
checking membership in both. That is three linear passes rather than the
n * m * p of three nested loops.
Constraints - `1 ≤ n, m, p ≤ 100000` - `-1000000000 ≤ values ≤ 1000000000`
Input
The first line contains three integers n, m and p.
The second line contains n integers, the third m, the fourth p.
Output
Print the shared values in increasing order separated by single spaces, or None.
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.