Link List


If you have 2 link list list1 and list2 how do you write a function to merge them. I need to do this using nested loops
Last edited on
I'm not sure why loops would be necessary. To join two linked lists, all that you need to do is point the last node of the first to the first node of the second.

the problem I'm working on call for the function to have a nested loop. the outher loop to handel the first list and check for duplicate numbers and the inner loop to handel the second list and to add or merge the list and then output to the screen
Topic archived. No new replies allowed.