Most software today is very much like an Egyptian pyramid with millions of bricks piled on top of each other, with no structural integrity, but just done by brute force and thousands of slaves. Alan Kay

Insertion sort using Linked list

Language Java | Level Intermediate | Category Data structure | August 30, 2015 5:40 pm

Data structure Description

Insertion sort is a sorting algorithm uses to sort items in the array or linked list. It can sort the elements in ascending order or descending order. Insertion sort is a simple sorting algorithm. It works efficiently for small data sets. Insertion sort builds the sorted array. It is best suitable for nearly sorted arrays and a small set of elements.

Write a program to sort the elements in the linked list using insertion sort.


Print the list of items: 21->52->33->67->NULL



No comments available!

Please login to add comments.