Note that the intersection of two lists is a new list


Write a java method with the signature:

Public ObjectList intersect ( ObjectList list, ObjectList list2)

That accepts two unordered linear linked lists and return a third linear linked list whose nodes contains the intersection of the two original linear linked lists. Note that the intersection of two lists is a new list containing the elements that the two list have in common, without modifying the two original lists. Describe any boundary conditions that might exist.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Note that the intersection of two lists is a new list
Reference No:- TGS01670360

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)