Write a Java program to merge two sorted (ascending) linked lists in ascending order
Expected Output:
How many elements do you want to add in 1st linked list?: 3
Input numbers of 1st linked list in ascending order: 1 2 3
How many elements do you want to add in 2nd linked list?: 3
Input numbers of 2nd linked list in ascending order: 4 5 6
Merged list: 1 2 3 4 5 6
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer