Category: Linked List

Reverse a Linked List Using Stack

“Reverse a Linked List Using Stack” is very popular programming problem based on linked list and stack data structures. Here, we are given a linked list and our task is to reverse a linked list using stack. Example: Suppose, we need to reverse the following linked list: LINKED LIST:       12...

Reverse a Linked List

“Reverse a Linked List” is one of the favourite technical interview problem based on Linked List. Here, we are given a linked list and our task is to reverse the given list.  NOTE: We need to reverse the order of the nodes, not reverse the data value of nodes. The steps...

Insert Node in the Sorted Linked List

“Insert Node in the Sorted Linked List” is one of the popular programming problem based on Linked List data structure. Here, we are given a sorted linked list and our task is to insert a node in a sorted linked list in such a way that after inserting the new...

blank

Insert Node at the End of Singly Linked List

“Insert Node at the End of Singly Linked List” is very basic programming problem based on. of linked list data structures. Here, we are given a linked list and our task. is to add a new node is added at the end of the linked list.  Example: Current Linked List: ...

blank

Linked List Vs. Arrays

Both Linked list and Arrays are linear data structure used to store data. The major difference between array and linked list lies in the structure of the array and linked list and how data is stored in both of them. Related Posts: Introduction to Linked List Insert a New Node...

blank

Introduction to Linked List

Introduction to Linked List: Linked list is a linear data structure used to store data. Each element of linked list is stored in the form of node.  A node is a collection of two fields: data and a pointer. A data part is used to store data and a pointer...