Write a C++ code that implements two linked lists (L1, L2) that contain double elements, and then do the following:
1. Implement the necessary member functions.
2. Implement a function Intersection(…) that displays the intersection of the two lists.
Input: L1= 1, 2, 3, 4, 5 L2= 2, 10, 5
Output: Intersection= 2, 5
3. Implement a function Union(…) that displays the union of the two lists.
Input: L1= 1, 2, 3, 4, 5 L2= 2, 10, 5
Output: Union= 1,2,3,4,5,10
4. Implement a function Difference(…) that displays the difference between the two lists.
Input: L1= 1, 2, 3, 4, 5 L2= 2, 10, 5
Output: L1-L2= 1, 3, 4
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.