## Reverse a linked list

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 »

- Create linked list from a given array
- Add Two Numbers Represented by Linked Lists | Set 3
- Introduction to Data Structures | 10 most commonly used Data Structures
- Delete Nth node from the end of the given linked list
- Add the given digit to a number stored in a linked list
- Convert a given Binary Tree to Circular Doubly Linked List | Set 2
- Bubble Sort for Linked List by Swapping nodes
- Create new linked list from two given linked list with greater element at each node
- Linked List Implementation in C#
- Reverse a Linked List in groups of given size (Iterative Approach)
- Count duplicates in a given linked list
- Find sum of even and odd nodes in a linked list
- Maximum sum of K consecutive nodes in the given Linked List
- Iterative selection sort for linked list
- Reverse alternate K nodes in a Singly Linked List - Iterative Solution
- Remove Nth node from end of the Linked List
- Program to unfold a folded linked list
- Sum of all distinct nodes in a linked list
- Sum of nodes in a linked list which are greater than next node
- Add one to a number represented as linked list | Set 2
- Find the balanced node in a Linked List
- Insert N elements in a Linked List one after other at middle position
- Create a linked list from two linked lists by choosing max element at each position
- Find the first duplicate element in the linked list
- Divide the given linked list in two lists of size ratio p:q
- Merge K sorted Doubly Linked List in Sorted Order
- Maximum sum contiguous nodes in the given linked list
- Reverse even elements in a Linked List
- Write a function to get the intersection point of two Linked Lists | Set 2
- Sum of smaller elements of nodes in a linked list

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 the end of the Linked… 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 »