Question: Java question about linked list. Linked Lists. Complete the following method that performs the fol- lowing: it takes two lists as parameters, and outputs a
Java question about linked list.

Linked Lists. Complete the following method that performs the fol- lowing: it takes two lists as parameters, and outputs a new list that is equivalent to attaching the two lists, with the beginning of the second list attached to the end of the first list. For example, if we have ListInteger L1 is {1,4,2}; ListInteger L2 is {3,7,5); then attach(L1, L2) will return 1,4,2,3,7,5. Report the runtime of your solution. public ListT> attach ( ListT> L1, ListT> L2 ) { // code in here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
