Given two Linked Lists L1, L2 Create a union (L,UL) and intersection (
4L) of the two
lists.
Input format
The first line denotes the list size L, followed by the elements e,, ez, ez ... en in the next
line.
The next line denotes the list size L2 followed by the elements e, eb,ec... ez in the next
line.
Note: Follow the sample output.
Output format
Print the INTERSECTION and UNION of two lists L, and L2 in separate line.
Order of Union: Print the list 2 elements excluding the common elements followed by the
list 1 elements
Answers
Answered by
0
Answer:
Explanation:
plzzzzzzzzzzzzzzz try t short the quetsions plzzzzzzz
Similar questions