## Count duplicates in a given linked list

Given a linked list. The task is to count the number of duplicate nodes in the linked list. Examples: Input: 5 -> 7 -> 5… Read More »

- Introduction to Data Structures | 10 most commonly used Data Structures
- Add Two Numbers Represented by Linked Lists | Set 3
- 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
- Create new linked list from two given linked list with greater element at each node
- Reverse a Linked List in groups of given size (Iterative Approach)
- Count duplicates in a given linked list
- Maximum sum of K consecutive nodes in the given Linked List
- Reverse alternate K nodes in a Singly Linked List - Iterative Solution
- Remove Nth node from end of the Linked List
- Add one to a number represented as linked list | Set 2
- Find the balanced node in a Linked List
- Write a function to get the intersection point of two Linked Lists | Set 2
- Reverse even elements in a Linked List
- 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
- Python | Stack using Doubly Linked List
- Traverse Linked List from middle to left-right order using recursion
- Run Length Decoding in Linked List
- Bitonic point in the given linked list
- Splitting starting N nodes into new Circular Linked List while preserving the old nodes
- Adding two polynomials using Linked List using map
- Insertion in a sorted circular linked list when a random pointer is given
- Subtraction of the alternate nodes of Linked List
- Add the given digit to a number stored in a linked list using recursion
- Python | Queue using Doubly Linked List

Given a linked list. The task is to count the number of duplicate nodes in the linked list. Examples: Input: 5 -> 7 -> 5… Read More »

Given two linked list of the same size, the task is to create a new linked list using those linked lists. The condition is that… Read More »

Given a linked list and two integers p and q, the task is to divide the linked list in the ratio p:q i.e. the first… Read More »

Given two linked list of equal sizes, the task is to create new linked list using those linked lists where at every step, the maximum… Read More »

Given an array arr[] of size N. The task is to create linked list from the given array. Examples: Input : arr[]={1, 2, 3, 4,… Read More »

Given a linked list, the task is to find the sum of all the odd frequency nodes from the given linked list. Examples: Input: 8… Read More »

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 »