All Problems

Merge Two Sorted Lists

Easylinked-listExpected: O(n+m) time, O(1) spaceInterview Context
sorting

Problem

Given the heads of two sorted linked lists, merge them into one sorted linked list.

Loading...