## Maximum occurring character in a linked list

Given a linked list of characters. The task is to find the maximum occurring character in the linked list. if their are multiple answer return… Read More »

Quick Links for Linked List

Quizzes |

Videos on Linked List |

Given a linked list of characters. The task is to find the maximum occurring character in the linked list. if their are multiple answer return… Read More »

This post explains the iterative approach of this problem. We maintain two pointers, prev and temp. If these two have either x or y same,… Read More »

Given a linked list. the task is to move all 0’s to the front of the linked list. The order of all other element except… Read More »

Given Nodes with their priority, implement a priority queue using doubly linked list. Prerequisite : Priority Queue Operations on Priority Queue : push(): This function… Read More »

Implement Priority Queue using Linked Lists. Operations on Priority Queue : push(): This function is used to insert a new data into the queue. pop():… Read More »

Given a linked list, split the linked list into two with alternate nodes. Examples: Input : 1 2 3 4 5 6 7 Output :… Read More »

Given a linked list, print the alternate nodes of linked list. Examples: Input : 1 -> 8 -> 3 -> 10 -> 17 -> 22… Read More »

Given a singly linked list, rearrange the list so that even and odd nodes are alternate in the list. There are two possible forms of… Read More »

Given a linked list, find majority element. An element is called Majority element if it appears more than or equal to n/2 times where n… Read More »

Given a linked list, print alternate nodes of this linked list. Examples : Input : 1 -> 2 -> 3 -> 4 -> 5 ->… Read More »

Given a linked list, and a number, check if their exist two numbers whose sum is equal to given number. If there exist two numbers,… Read More »

Given a doubly linked list containing n nodes. The problem is to reverse every group of k nodes in the list. Examples: Recommended: Please try… Read More »

Given a linked list. arrange the linked list in manner of alternate first and last element. Examples: Input : 1->2->3->4->5->6->7->8 Output :1->8->2->7->3->6->4->5 Input :10->11->15->13 Output… Read More »

Given a linked list, check if the the linked list has loop or not. Below diagram shows a linked list with a loop. We have… Read More »

Delete the given linked list using recursion Method 1) If head equal to NULL then linked list is empty, we simply return. 2) Recursively delete… Read More »