Combine Two Ascending Linked Lists

Asked at Citadel · Coding Questions · Difficulty: Easy · Last asked Nov 23, 2026

You are given the heads of two singly linked lists. Each list holds integers in non-decreasing order. Join them into one list that is also in non-decreasing order and return its head. The result must be built by relinking the nodes you were given, not by copying their values into new nodes.

Loading the problem…