Smatchcube's website 🌍


Exercise 2.59

Note that this procedure assume that set1 has no element that appears more than once. This is a little trade-off for better performance.