Merge Two Sorted Linkedlist
1. Merge two sorted linkedlists and return head of a sorted linkedlist. The list should be made by splicing together the nodes of the first two listsInput Format
2. Both list are sorted in increasing order.
1->2->6->7->15->24->nullOutput Format
-1->0->6->17->25->null
-1->0->1->2->6->6->7->15->17->24->25->nullQuestion Video
0 <= size of linkedlist <= 10^6Sample Input
2Sample Output
1 5
4
1 3 6 10
1 1 3 5 6 10
-
Asked in Companies
-
Related Topics
Video Solution
Code Solution
{ }
{ }
Run