Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 190 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 190 Bytes

This problem was asked by Google.

Given a linked list, sort it in O(n log n) time and constant space.

For example, the linked list 4 -> 1 -> -3 -> 99 should become -3 -> 1 -> 4 -> 99.