In this article, we are going to learn the important difference between ArrayList and LinkedList. As it is one of the often-asked interview questions for Java developers, this article is...
Let’s assume there are 2 stacks. Stack A and Stack B. Now we are going to push elements in both the stacks. After Merge Operation we will push all elements...
Circular Queue It is a linear data structure that works on the principle of FIFO (First in First out). In this type of queue element can be added in any...
 In this article, we will deep dive and discuss how to convert the binary tree to circular doubly linked list. Converting a binary tree to circular doubly linked list...
Problem Statement: Given nodes with their priority, we have to implement a priority queue using a doubly linked list. What is a Priority Queue? Priority queues are abstract data structures...
Priority Queue: Priority queue is an abstract data type, It is a type of queue in which each element has a priority assigned to it. The priority of the element...
A queue is an ordered collection of elements in which the addition of one element happens at one end known as REAR and the removal of existing elements occurs at...
The linked list is one of the most important concepts in data structures and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can...
In this article, we will see another problem of linked list Convert singly linked list into xor linked list. Linked list is a linear data structures. The node in linked...
A doubly linked list is a type of linked list in which the node consists of three parts i.e. the data, the pointer of the previous node and the pointer...
Introduction Linked list is one of the most important concepts and data structures to learn while preparing for coding interviews. Having a good grasp of Linked Lists can be a...
Josephus problem linked list is also known as josephus problem using circular linked list. This problem is continuously asked in the recent interviews. Let us understand the josephus problem linked...
In the below article, we are seeing how to code a menu driven program for all operations on a doubly linked list in C. Generally a doubly linked list consists...
This blog will discuss an important problem of count pairs from two linked with given sum Such problems do come in interviews. Before solving the problem, it’s recommended that a...
Introduction Even though we have seen different operations on linked lists, where we have done insertion, deletion etc. But what if we want to merge two unsorted linked lists. Lets...
This article will discuss in detail how to find a triplet from three linked lists with a sum equal to a given number. Linked list is a dominating topic when...
In this article, we will see a new coding problem of the linked list i.e.” Create a loop in linked list” A linked list is a linear data structure. Each...
A linked list is a linear data structure. In the linked list elements are not stored continuously but randomly. It is a vital topic from the placement point of view,...
Introduction The linked list is one of the most important concepts to know while preparing for interviews. Having a good grasp of a linked list can be a huge plus...
Problem Statement In this problem, we will be given a sorted doubly linked list and a target integer. We need to find and print the pairs whose sum is equal...
Linked is an important concept of data structures for placement point of view. In an interview, almost all the questions asked related to the linked list. One of the most...
Introduction One of the most crucial data structures to learn while preparing for interviews is the Linked List. In a coding interview, having a thorough understanding of Linked Lists might...
The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a huge...
In this article, we will discuss one of the famous questions of linked lists “Point arbit pointer to greatest value right-side node in a linked list”. Having practice questions like...
Introduction The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a...
As we already know that linked lists are a dynamic data structure it is important to know how to insert an element as well. In the article given below we...
Introduction The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a...
This blog will discuss how to make a C function to print the middle of a linked list. Linked list is one of the most interesting topics when you start...
In the below article, we will learn about the applications of linked list in data structures. A linked list is a linear data structure. In a linked list, the elements...
In this article, we will learn how we can flatten the list either horizontally using the next pointers or vertically using the down pointers. let’s try to understand the logic...