Skip to content

Tag Archives: Linked Lists

Given a singly linked list, the task is to split the given linked list into exactly three parts such that the maximum difference between the… Read More
Given the head of a Linked List of size N, consisting of binary integers 0s and 1s, the task is to sort the given linked… Read More
Given an unsorted Singly Linked List consisting of N nodes that may contain duplicate elements, the task is to remove all but the last occurrence… Read More
An Orthogonal Linked List is a data structure composed of fundamental elements called Nodes (similar to linked lists). Each node in an orthogonal Linked List… Read More
Given the head of the linked list representing a positive integer, the task is to print the updated linked list after subtracting 1 from it.… Read More
Given a linked list consisting of N nodes and an integer K, the task is to split the given Linked List into K continuous groups… Read More
Given two linked lists of size N and M consisting of positive value nodes, having a common intersection point, the task is to find the… Read More
Given a Linked List and two integers X and Y, the task is to remove all occurrences of Y after the first occurrence of a… Read More
Given an XOR linked list, the task is to delete the node at the end of the XOR Linked List. Examples: Input: 4<–>7<–>9<–>7Output: 4<–>7<–>9Explanation: Deleting… Read More
Prerequisites: Linked list Problem: Create a student Record Management system that can perform the following operations: Insert Student record Delete student record Show student record… Read More
In a Circular linked list, every element has a link to its next element in the sequence and the last element has a link to… Read More
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 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 XOR linked list, the task is to reverse the XOR linked list. Examples: Input: 4 <–> 7 <–> 9 <–> 7Output: 7 <–>… Read More