Skip to main content
Merge Two Sorted Lists | AlgoCracked
AlgoCracked
ProblemsMerge Two Sorted Lists
Easy62.0% acceptance
Blind75Linked ListRecursion

Merge Two Sorted Lists

You are given the heads of two sorted linked lists list1 and list2 . Splice them into one sorted list and return its head. Input format Input is [list1, list2] as JSON arrays, e.g. [[1,2,4],[1,3,4]] . Both are ascending. ListNode is predefined.

Loading workspace…