Skip to content

Category Archives: Linked List

Given a singly linked list and the task is to convert it into an array.Examples:   Input: List = 1 -> 2 -> 3 -> 4… 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 which represents an integer number where each node is a digit of the represented integer. The task is to add a… Read More
There are two singly linked lists in a system. By some programming error, the end node of one of the linked list got linked to… 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 an array arr[] of integers and a pointer to a random node of a circular sorted linked list (initially empty), the task is to… Read More
Given K sorted doubly linked list. The task is to merge all sorted doubly linked list in single sorted doubly linked list means final list… Read More
Given a Linked List. The task is to traverse the Linked List from middle to left-right order using recursion.For Example:   If the given Linked List… Read More
Given a singly linked list and an integer K. The task is to append last K elements of the linked list to front. Examples:Attention reader!… Read More
A stack is a collection of objects that are inserted and removed using Last in First out Principle(LIFO). User can insert elements into the stack,… Read More
A Queue is a collection of objects that are inserted and removed using First in First out Principle(FIFO). Insertion is done at the back(Rear) of… Read More
Given two polynomial numbers represented by a linked list. Write a function to perform their algebraic sum. Examples:Attention reader! Don’t stop learning now. Get hold… Read More
Given a linked list. The task is to remove the Nth node from the end of the linked list. Examples:  Attention reader! Don’t stop learning now.… Read More
Given a linked list. The task is to print the difference between the first odd positioned node with the sum of all other odd positioned… Read More
Given a linked list, the task is to find the maximum sum for any contiguous nodes. Examples:  Attention reader! Don’t stop learning now. Get hold of… Read More

Start Your Coding Journey Now!