## Split a Circular Linked List into two halves

Original Linked List Result Linked List 1 Result Linked List 2 If there are odd number of nodes, then first list should contain one extra.… 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
- Add the given digit to a number stored in a linked list
- Print the last k nodes of the linked list in reverse order | Iterative Approaches
- 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#
- Delete Nth node from the end of the given linked list
- 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
- Iterative selection sort for linked list
- Maximum sum of K consecutive nodes in the given Linked List
- Program to unfold a folded linked list
- Reverse alternate K nodes in a Singly Linked List - Iterative Solution
- Correct the Random Pointer in Doubly Linked List
- Sum of all distinct nodes in a linked list
- Sum of nodes in a linked list which are greater than next node
- Find the balanced node in a Linked List
- Add one to a number represented as linked list | Set 2
- Insert N elements in a Linked List one after other at middle position
- Divide the given linked list in two lists of size ratio p:q
- Create a linked list from two linked lists by choosing max element at each position
- Sum of smaller elements of nodes in a linked list
- Maximum sum contiguous nodes in the given linked list
- Remove Nth node from end of the Linked List
- Sum of all odd frequency nodes of the Linked List
- Check whether the sum of element of a node is equal to the given key value

Original Linked List Result Linked List 1 Result Linked List 2 If there are odd number of nodes, then first list should contain one extra.… Read More »

Write a C function to reverse a given Doubly Linked List See below diagrams for example. (a) Original Doubly Linked List (b) Reversed Doubly Linked… Read More »

Write a removeDuplicates() function which takes a list and deletes any duplicate nodes from the list. The list is not sorted. For example if the… Read More »

Write a function which takes a list sorted in non-decreasing order and deletes any duplicate nodes from the list. The list should only be traversed… Read More »

Given a linked list, print reverse of it using a recursive function. For example, if the given linked list is 1->2->3->4, then output should be… Read More »

There are two singly linked lists in a system. By some programming error, the end node of one of the linked list got linked to… Read More »

Given a sorted linked list and a value to insert, write a function to insert the value in a sorted way. Initial Linked List Linked… Read More »

Asked by Varun Bhatia. Question: Write a code for implementation of doubly linked list with use of single pointer in each node. Solution: This question… Read More »

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 »