Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 204 Bytes

File metadata and controls

17 lines (9 loc) · 204 Bytes

Problem 148: Sort List

Difficulty: Medium

Problem

Sort a linked list in O(n log n) time using constant space complexity.

Example

Input: 4->2->1->3
Output: 1->2->3->4