3 Insertion Sort List -->
Leetcode November 2020 Challenge
Question
Sort a linked list using insertion sort.
Example 1:
Input: 4->2->1->3
Output: 1->2->3->4
Example 2:
Input: -1->5->3->4->0
Output: -1->0->3->4->5
Solution
Insertion sort is a simple sorting algorithm that works similarly to the way you sort...
codewithkeshav.hashnode.dev8 min read