Skip to content

Category Archives: Linked List

Given a singly linked list containing N nodes, the task is to find the sum and product of all the nodes from the list whose… Read More
Given a circular singly linked list containing N nodes, the task is to remove all the nodes from the list which contains Fibonacci data values.Examples:  … Read More
Given two Linked List, the task is to create a Linked List to store the difference of Linked List 1 with Linked List 2, i.e.… Read More
Given a doubly linked list containing N nodes, the task is to remove all the nodes from the list which contains Fibonacci numbers.Examples:  Input: DLL… Read More
Given two Linked Lists L1 and L2, the task is to generate a new linked list with no common elements from the given two linked… Read More
Given a linked list, the task is to find the sum of all subsets of a linked list.Examples:   Input: 2 -> 3 -> NULL Output: 10 Explanation: All… Read More
Given a Linked List, check if the linked list has a loop or not.There are various methods shown here: Detect Cycle in Linked List Example  … Read More
Prerequisite: Operator Overloading in C++, Linked List in C++ C++ comes with libraries that provide ways for performing Input and Output. In C++, Input and… Read More
Prerequisites: Doubly Linked List Given a doubly-linked list, the task is to swap Kth node from the beginning with Kth node from the ending.Note: Please note… Read More
Given a singly linked list, the task is to remove the vowels from the given linked list. Examples:  Input: g -> e -> e ->… Read More
Given three integers A, B and L, the task is to print the ternary cantor set from range [A, B] upto L levels. Ternary Cantor Set:… Read More
Given a Linked List which represents a sentence S such that each node represents a letter, the task is to reverse the sentence without reversing… Read More
Prerequisite: Delete all the even nodes of a Circular Linked ListGiven a circular singly linked list containing N nodes, the task is to delete all… Read More
There are two singly linked lists in a system. By some programming error, the end node of one of the linked lists got linked to… Read More
Given the head of a Singly Linked List and a value m, the task is to move the last m elements to the front. Examples:   Input:… Read More

Start Your Coding Journey Now!