## Merge Sort for Linked Lists in JavaScript

Prerequisite: Merge Sort for Linked Lists Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes… Read More »

Quick Links for Linked List

Quizzes |

Videos on Linked List |

Prerequisite: Merge Sort for Linked Lists Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes… Read More »

Given a doubly linked list, the task is to find the size of that doubly linked list. For example, size of below linked list is… Read More »

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

Given a linked list, the problem is to delete all the nodes from the list that are greater than the specified value x. Examples: Input… Read More »

Given a Linked List, task is to check whether the Linked List is sorted in Descending order or not? Examples : Input : 8 ->… Read More »

Given a linked list. We need to find unique elements in the linked list i.e, those elements which are not repeated in the linked list… Read More »

A Doubly linked list is a linked list that consists of a set of sequentially linked records called nodes. Each node contains two fields that… Read More »

Given a linked list with some two adjacent repeating nodes before a zero, task is to double the first and make next 0. After this,… Read More »

Design a data structure which can do following operations add() in O(n) getMinimum() in O(1) deleteMinimum() in O(1) Source : MakeMyTrip Interview. Recommended: Please try… Read More »

Given two very large numbers in form of strings. Your task is to apply different arithmetic operations on these strings. Prerequisite : Doubly Linked List.… Read More »

Given two singly linked lists, find the Longest common suffix of two linked lists. If there are no common characters which are suffixes, return the… Read More »

A linked list is a linear collection of data elements, in which each node points to the next node. Unlike an array, it doesn’t have… Read More »

Given a singly linked list and a key, find key using binary search approach. To perform Binary search based on Divide and Conquer Algorithm, determination… Read More »

Given n people standing in a circle where 1st is having sword, find the luckiest person in the circle, if from 1st soldier who is… Read More »

Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than the… Read More »