Showing posts with label Insertion Sort. Show all posts
Showing posts with label Insertion Sort. Show all posts

Monday, December 30, 2013

[LeetCode] Insertion Sort List

Link : Insertion Sort List

Sort a linked list using insertion sort.

Analysis:
Quite straight-forward, create a new linked list header,
a) get a list node in original list,
b) find the place to insert it
c) and insert it

Code says!