# Category Archives: Linked List

Given a linked list and an integer N, the task is to delete the Nth node from the end of the given linked list.  Examples:  … Read More
Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of… 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 linked list, the task is to find the sum of distances between the two nearest perfect squares for all the nodes of the… Read More
Given an encoded Linked List which is encoded using the Run Length Encoding algorithm. The task is to decode the given linked list and generate… Read More
Given a linked list, the task is to find the balanced node in a linked list. A balanced node is a node where the sum… Read More
Given a Binary Tree, convert it to a Circular Doubly Linked List.  The left and right pointers in nodes are to be used as previous… Read More
Given a linked list. The task is to count the number of duplicate nodes in the linked list. Examples:   Input: 5 -> 7 -> 5 ->… Read More
Given two linked list of the same size, the task is to create a new linked list using those linked lists. The condition is that… Read More
Given a linked list and two integers p and q, the task is to divide the linked list in the ratio p:q i.e. the first… Read More
Given two linked list of equal sizes, the task is to create new linked list using those linked lists where at every step, the maximum… Read More
Given an array arr[] of size N. The task is to create linked list from the given array.Examples:   Input : arr[]={1, 2, 3, 4, 5}… Read More
Given a linked list, the task is to find the sum of all the odd frequency nodes from the given linked list.Examples:   Input: 8 ->… Read More
Given a linked list, every node of which consists of a pair of integer variables first and second to hold the data, and a pointer… Read More
Given a linked list and it may consist of duplicate nodes. The task is to find the sum of non-duplicate nodes. Examples:   Input: 1 -> 2… Read More