DSA Key Problems

Sort List

Given the head of a singly linked list, reorder its nodes so their values are nondecreasing while meeting the required time and auxiliary-space bounds.