Question: concatenate Implement a method which takes two LinkedIntLists as input and returns a new list containing all the items of the first followed by all
concatenate
Implement a method which takes two LinkedIntLists as input and returns a new list containing all the items of the first followed by all the items of the second. Dont modify the input lists; use the new keyword to create new objects instead. Your implementation should run in linear time ie without the use of nested forloops.
list: front
list: front
If you made the call concatenatelist list then it should return a new list:
return: front
and list and list would remain unchanged:
list: front
list: front
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
