A Linked List is a linear data structure that consists of two parts: one is the data part and the other is the address part.… Read More

# Category Archives: Linked List

Given a XOR linked list, the task is to pairwise swap the elements of the given XOR linked list . Examples: Input: 4 7 9… Read More

Given an XOR linked list, the task is to remove the first node of the XOR linked list. Examples: Input: XLL = 4 < –… Read More

A Linked List is a linear data structure, in which the elements are not stored at contiguous memory locations. Sorting the nodes of a Singly… Read More

We are given two sorted List and our goal is to merge these two lists into a new list. For that, we have to write… Read More

Given a XOR linked list and an integer K, the task is to reverse every K nodes in the given XOR linked list. Examples: Input:… Read More

Given a Circular Linked List, the task is to add a New Node at the Middle of the List. Let’s consider the following Circular Linked… Read More

Given a XOR linked list, the task is to reverse the XOR linked list. Examples: Input: 4 <–> 7 <–> 9 <–> 7Output: 7 <–>… Read More

There are many data structures like arrays, linked lists, etc. Each sort of arrangement has its strengths and weaknesses. For these reasons, it’s important to… Read More

Given a XOR linked list and an integer N, the task is to print the Nth node from the end of the given XOR linked… Read More

Given an XOR linked list, the task is to find the middle node of the given XOR linked list. Examples: Input: 4 –> 7 –>… Read More

Given a XOR linked list and two integers position and value, the task is to insert a node containing value as the positionth node of… Read More

In a circular linked list, every node points to its next node in the sequence but the last node points to the first node in… Read More

Given a Doubly linked list(DLL) containing N nodes and an integer X, the task is to find the position of the integer X in the… Read More

A Doubly Linked List(DLL) is a linear data structure that contains an extra pointer, typically called the previous pointer, together with the next pointer and… Read More