Skip to content

Category Archives: Linked List

Given the linked list and an array arr[] of size N, the task is to reverse every arr[i] nodes of the list at a time… Read More
Given a doubly linked list having all unique elements and two keys X and Y, the task is to swap nodes for two given keys… Read More
Given a head and a tail of a doubly linked list containing 0s and 1s, the task is to sort the Doubly linked list without… Read More
Split given Circular Linked List into three halves without calculating its length such that the difference between a linked list with a maximum number of… Read More
Given a linked list lis of length N, the task is to determine the maximum distance between two consecutive peaks of the given linked list.… Read More
Given a sequence of numbers in the form of a linked list lis. Find the length of the Longest Increasing Subsequence(LIS) of the given Linked… Read More
Given a doubly-linked list containing n nodes. The problem is to reverse every group of k nodes in the list. Examples:  Input: List: 10<->8<->4<->2, K=2Output:… Read More
Given a linked list lis of length N, where N is even. The task is to maximize the sum of two equidistant nodes from the… Read More
Given two linked lists, list1 and list2 of sizes m and n respectively. The task is to remove list1’s nodes from the ath node to… Read More
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked… Read More
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked… Read More
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked… Read More
Given two linked lists that represent two large positive numbers. Subtract the smaller number from the larger one and return the difference as a linked… Read More
Given a linked list and two positions ‘m’ and ‘n’. The task is to rotate the sublist from position m to n, to the right… Read More
Given a linked list and two positions ‘m’ and ‘n’. The task is to rotate the sublist from position m to n, to the right… Read More

Start Your Coding Journey Now!