# Tag Archives: doubly linked list

Given a sorted doubly linked list of positive distinct elements, the task is to find pairs in the doubly linked list whose product is equal… Read More
Given a doubly-linked list containing N nodes and given a number K. The task is to find the product of all such nodes which are… Read More
Design a data structure for LRU Cache. It should support the following operations: get and set. get(key) – Get the value (will always be positive)… Read More
Given a doubly-linked list containing N nodes, the task is to delete all nodes from the list which are divisible by K. Examples:  Input: List… Read More
Given a doubly linked list containing N nodes, the task is to delete all nodes from the list which are prime. Examples:  Input: List =… Read More
Given a doubly-linked list of positive integers. The task is to print the given doubly linked list data in reverse order. Examples: Input: List =… Read More
Given a doubly linked list and an array with only odd values. Both are of equal size N. The task is replace all node which… Read More
Given a doubly linked list containing N nodes, the task is to delete all the even nodes from the list.  Examples:   Input: Initial List =… Read More
Given a doubly-linked list containing N nodes and given a number K. The task is to find the sum of all such nodes which are… Read More
Given a doubly linked list containing N nodes and a number K, the task is to delete all the nodes from the list that are… Read More