LeetCode 147: Insertion Sort List
Problem Restatement We are given the head of a singly linked list. Sort the list using insertion sort and return the new head. Insertion sort builds a sorted output list one node at a time. At each step, it removes one node from the input, finds where it belongs in the sorted part, and inserts it there. LeetCode gives examples such as [4,2,1,3] -> [1,2,3,4] and [-1,5,3,4,0] -> [-1,0,3,4,5] ....