Splice Two Sorted Linked Lists

Asked at Snowflake · Coding Questions · Difficulty: Easy

You are given two singly linked lists whose values are already in non-decreasing order. Join them into one list that is also in non-decreasing order, by relinking the nodes you were given rather than creating new ones, and return the head of the joined list.

Loading the problem…