...
/Challenge 9: Union and Intersection of Lists Using Hashing
Challenge 9: Union and Intersection of Lists Using Hashing
Given the two lists, find the union and intersection of their elements using hashing. Solve this exercise and see if your output matches the expected output.
We'll cover the following...
Problem statement
Union and intersection are two of the most popular operations, which can be performed on data sets. Now, you will be implementing them for linked lists! Let’s take a look at their definitions.
Union
Given the two lists of A and B, the union is the list that contains elements or objects that belong to either A or to B or to both, but duplicates are not allowed. ...