This question evaluates proficiency with linked list data structures, pointer manipulation, in-place merging of sorted sequences, and general algorithmic reasoning within the Coding & Algorithms domain.
You are given the heads of two singly linked lists, each already sorted in non-decreasing order. Merge them into one sorted linked list and return the head of the merged list.
Requirements:
Example:
1 -> 2 -> 4
1 -> 3 -> 4
1 -> 1 -> 2 -> 3 -> 4 -> 4