Java Solution for https://leetcode.com/problems/merge-two-sorted-lists/ — Originally published at https://asyncq.com Youtube Video If you prefer video format : https://www.youtube.com/watch?v=29RWY7bEq-g Understanding Problem We have been given two sorted singly linked lists and our job is to merge these two lists such that the result list should also be sorted. For example l1 = [2,3,4,5] & l2=[1,6,7,8]
result = [1,2,3,4,5,6,7,8]