## Sum of smaller elements of nodes in a linked list

Given a linked list, every node of which consists of a pair of integer variables first and second to hold the data, and a pointer… Read More »

- Implement a stack using singly linked list
- Delete a Node from linked list without head pointer
- Print the last k nodes of the linked list in reverse order
- Remove last node of the linked list
- Coviam Software Developer Internship Experience
- Clone a stack without extra space
- Remove first node of the linked list
- Difference between Singly linked list and Doubly linked list
- Flatten a binary tree into linked list | Set-3
- Multiplication of two polynomials using Linked list
- Program to reverse a linked list using Stack
- Pairwise swap adjacent nodes of a linked list by changing pointers | Set 2
- Delete all the even nodes of a Circular Linked List
- Min and Max in a List in Java
- Append odd position nodes in reverse at the end of even positioned nodes in a Linked List
- Second Smallest Element in a Linked List
- Print the last k nodes of the linked list in reverse order | Iterative Approaches
- Rotate the sub-list of a linked list from position M to N to the right by K places
- Find the second last node of a linked list in single traversal
- Convert Singly Linked List to XOR Linked List
- Finding Median in a Sorted Linked List
- Delete all odd or even positioned nodes from Circular Linked List
- Deletion at different positions in a Circular Linked List
- Find minimum and maximum elements in singly Circular Linked List
- Sum and Product of the nodes of a Circular Singly Linked List which are divisible by K
- Delete all Prime Nodes from a Circular Singly Linked List
- Check if a pair with given product exists in Linked list
- Print nodes of linked list at given indexes
- Sum of the alternate nodes of linked list
- Find the common nodes in two singly linked list

Given a linked list, every node of which consists of a pair of integer variables first and second to hold the data, and a pointer… Read More »

Given a linked list and it may consist of duplicate nodes. The task is to find the sum of non-duplicate nodes. Examples: Input: 1 ->… Read More »

Given a singly linked list, sort it using bubble sort by swapping nodes. Example: Input: 10->30->20->5 Output: 5->10->20->30 Input: 20->4->3 Output: 3->4->20 Recommended: Please try… Read More »

Given an array of N elements. The task is to insert the given elements at the middle position in the linked list one after another.… Read More »

Given a linked list, the task is to sort the linked list in ascending order by using selection sort. Examples: Input : 1->4->2->2->3 Output :… Read More »

Given an integer k and a linked list, every node of which consists of a pair of integer variable first and second to hold the… Read More »

Given a linked list, the task is to find the sum of all the nodes which are greater than the node next to them. Note… Read More »

Given a linked list, the task is to find the sum of even and odd nodes in it separately. Examples: Input: 1 -> 2 ->… Read More »

A LinkedList is a linear data structure which stores element in the non-contiguous location. The elements in a linked list are linked with each other… Read More »

A linked list L0 -> L1 -> L2 -> ….. -> LN can be folded as L0 -> LN -> L1 -> LN – 1… Read More »

Given a doubly linked list having exactly one of the node pointing to a random node in the list, the task is to correct this… Read More »

Given a linked list containing N nodes and a positive integer K where K should be less than or equal to N. The task is… Read More »

Given a singly linked list, remove all the nodes which have a greater value on the right side. Examples: a) The list 12->15->10->11->5->6->2->3->NULL should be… Read More »

Given a Linked List as the input. The task is to encode the given linked list using Run Length Encoding. That is, to replace a… Read More »

Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack. Examples: Input :… Read More »