Skip to content

Tag Archives: Linked Lists

Given a node of Linked List N and a value K, the task is to insert the node with value K in the linked list… Read More
A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list… Read More
Creating custom data types can be tricky, especially when you want to use it like any other data type. Linked List can be thought of… Read More
Linked list is a simple data structure in programming, which obviously is used to store data and retrieve it accordingly. To make it easier to… Read More
Given a Linked List consisting of integers, the task is to print the number of distinct absolute values present in the Linked List. Examples:  Input:… Read More
Given an integer K and a linked list in which each node stores a single character. The task is to join every K consecutive nodes… Read More
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 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
Given a singly linked list and an integer K, the task is to rotate the linked list clockwise to the right by K places.Examples:   Input:… Read More
Given a linked list, the task is to reverse the contiguous even elements and print the updated linked list.  Input: 1 -> 2 -> 3… Read More
Given a linked list, the task is to find the maximum sum obtained by adding any k consecutive nodes of linked list. Examples:   Input: 1… Read More
Given a singly linked list, sort it using bubble sort by swapping nodes.   Examples: Input: 10->30->20->5Output: 5->10->20->30 Input: 20->4->3Output: 3->4->20 Recommended: Please try your… Read More
Given a Linked List and a key K. The task is to write a program to delete all the nodes from the list that are… Read More
Pre-requisite: Convert an Array to a Circular Doubly Linked List, Doubly Circular Linked ListGiven a doubly circular linked list. The task is to find the… Read More
Given a Linked List of integers. The task is to write a program to modify the linked list such that all even numbers appear before… Read More

Start Your Coding Journey Now!