## Clone a linked list with next and random pointer | Set 1

You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list.… 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
- Program to unfold a folded linked list
- Delete Nth node from the end of the given linked list
- Correct the Random Pointer in Doubly Linked List
- Delete nodes which have a greater value on right side using recursion
- Program to implement Run Length Encoding using Linked Lists
- Sum of nodes in a linked list which are greater than next node
- Maximum sum of K consecutive nodes in the given Linked List
- 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
- Sum of smaller elements of nodes in a linked list
- Insert N elements in a Linked List one after other at middle position
- 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
- Sum of all odd frequency nodes of the Linked List

You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list.… Read More »

Asked by Varun Bhatia. Question: Write a recursive function treeToList(Node root) that takes an ordered binary tree and rearranges the internal pointers to make a… Read More »

Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false. Recommended: Please solve… Read More »

Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop. Recommended: Please solve… Read More »

Given pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by… Read More »

A simple solution is to traverse the linked list until you find the node you want to delete. But this solution requires pointer to the… Read More »

Given a singly linked list and a key, count number of occurrences of given key in linked list. For example, if given linked list is… Read More »

Algorithm For C/C++: Iterate through the linked list and delete all the nodes one by one. Main point here is not to access next of… Read More »

Given a Linked List and a number n, write a function that returns the value at the n’th node from end of the Linked List.… Read More »

Given a singly linked list, find middle of the linked list. For example, if given linked list is 1->2->3->4->5 then output should be 3. If… Read More »

Given a pointer to a node to be deleted, delete the node. Note that we don’t have pointer to head node. Recommended: Please solve it… Read More »

Write a GetNth() function that takes a linked list and an integer index and returns the data value stored in the node at that index… Read More »