## Modify contents of Linked List – Recursive approach

Given a singly linked list containing n nodes. Modify the value of first half nodes such that 1st node’s new value is equal to the… Read More »

- Print the last k nodes of the linked list in reverse order | Recursive approach
- Pairwise swap adjacent nodes of a linked list by changing pointers | Set 2
- Program to reverse a linked list using Stack
- Create linked list from a given array
- Print the last k nodes of the linked list in reverse order | Iterative Approaches
- Add Two Numbers Represented by Linked Lists | Set 3
- Add the given digit to a number stored in a linked list
- Convert a given Binary Tree to Circular Doubly Linked List | Set 2
- Linked List Implementation in C#
- Bubble Sort for Linked List by Swapping nodes
- Create new linked list from two given linked list with greater element at each node
- Iterative selection sort for linked list
- Reverse a Linked List in groups of given size (Iterative Approach)
- Find sum of even and odd nodes in a linked list
- Count duplicates in a given linked list
- Delete Nth node from the end of the given linked list
- Program to unfold a folded linked list
- Delete nodes which have a greater value on right side using recursion
- Correct the Random Pointer in Doubly Linked List
- Maximum sum of K consecutive nodes in the given Linked List
- Program to implement Run Length Encoding using Linked Lists
- Sum of nodes in a linked list which are greater than next node
- Reverse alternate K nodes in a Singly Linked List - Iterative Solution
- Sum of all distinct nodes in a linked list
- Divide the given linked list in two lists of size ratio p:q
- Insert N elements in a Linked List one after other at middle position
- Introduction to Data Structures | 10 most commonly used Data Structures
- Sum of smaller elements of nodes in a linked list
- Check whether the sum of element of a node is equal to the given key value
- Find the product of first k nodes of the given Linked List

Given a singly linked list containing n nodes. Modify the value of first half nodes such that 1st node’s new value is equal to the… Read More »

Introduction to Singly linked list : A singly linked list is a set of nodes where each node has two fields ‘data’ and ‘link’. The… Read More »

Given a doubly linked list ‘L’ and an array ‘refArr’ of references to the nodes of the doubly linked list ‘L’. Array 'refArr' does not… Read More »

Given a linked list. The task is to segregate its even and odd position nodes in such a way that odd position nodes appear before… Read More »

Given a singly linked list, find middle of the linked list. Given a singly linked list, find middle of the linked list. For example, if… Read More »

Given a binary tree, flatten it into linked list in-place. Usage of auxiliary data structure is not allowed. After flattening, left of each node should… Read More »

Given a linked list. The task is to change the value of the previous and next node of a node to 0 if the current… Read More »

Given a singly linked list containing N nodes, the task is to delete all nodes from the list which are not prime. Examples: Input :… Read More »

Given a singly linked list. The task is to find the average of all nodes of the given singly linked list. Examples: Input: 7->6->8->4->1 Output:… Read More »

Static Queue: A queue is an ordered list of elements. It always works in first in first out(FIFO) fashion. All the elements get inserted at… Read More »

Given a singly circular linked list. The task is to find the sum and product of nodes which are divisible by K of the given… Read More »

Delete all odd position nodes from circular linked list Given a Singly Circular Linked List, starting from the first node delete all odd position nodes… Read More »

Given a Circular Linked List. The task is to write programs to delete nodes from this list present at: First position. Last Position. At any… Read More »

Given two polynomials in the form of linked list. The task is to find the multiplication of both polynomials. Examples: Input: Poly1: 3x^2 + 5x^1… Read More »

Given a singly circular linked list of nodes. The task is to find the smallest and largest elements in the circular linked list. Examples: Input… Read More »