You can use sorted linked list as a sorting mechanism in some situations. Let us say you have an array of unsorted items. You copy items one by one from array and insert them one by one in to the… Read More!
If there is requirement for an application to maintain the data in sorted order within the list, then you need to use sorted linked lists. In this tutorial you will see how to implement sorted linked list using Java. In… Read More!
In our previous article you have seen Double-ended Linked List. Doubly linked list is another variation of Linked Lists and don’t confuse with double-ended list. An important problem that doubly linked list solves is it provides a way to traverse backward… Read More!
In our previous articles we have see how to implement the following. Stack using Arrays Queue using Arrays Stack using Linked List Queue using Linked List You may face the following interview question on when to choose Linked List over… Read More!
Stacks and Queues are ADTs (Abstract Data Types). In our previous article we have seen how to implement Stack using Linked List. In this this article you will learn how to implement Queue using Double-Ended Linked List. What is ADT ?… Read More!