xxxxxxxxxx
Time Complexity of this is O(len(s1) + len(s2)) where s1 and s2 are two sets whose union needs to be done. Intersection:- This can be done through intersection() or & operator. Common Elements are selected. They are similar to iteration over the Hash lists and combining the same values on both the Table.