An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements… Read More

# Tag Archives: Linked Lists

Given root of the Binary Tree T and a linked list L, the task is to find the direction of path followed from root such… Read More

Circular Doubly Linked List has properties of both Doubly Linked List and Circular Linked List in which two consecutive elements are linked or connected by… Read More

Partition a Linked List into 3 parts such that the maximum difference between their sizes is minimum

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:Attention reader! Don’t stop learning… Read More

Prerequisites: Linked list Problem: Create a student Record Management system that can perform the following operations:Want to learn from the best curated videos and practice… 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