## Sorted Linked List to Balanced BST

Given a Singly Linked List which has data members sorted in ascending order. Construct a Balanced Binary Search Tree which has same data members as… Read More »

- Real-time application of Data Structures
- Construct a Doubly linked linked list from 2D Matrix
- How Coronavirus outbreak can end | Visualize using Data structures
- Find the string formed by joining k consecutive nodes of linked list
- Operator Overloading '<<' and '>>' operator in a linked list class
- Flattening a linked list | Set 2
- Sum of all Palindrome Numbers present in a Linked list
- Detect Cycle in a Linked List using Map
- Find length of loop in a Linked List using Map
- Remove all Fibonacci Nodes from a Circular Singly Linked List
- Swap Kth node from beginning with Kth node from end in a Doubly Linked List
- Check if Inorder traversal of a Binary Tree is palindrome or not
- Find the largest and second largest value in a Linked List
- Sum of all subset sums of a linked list
- Find the element in a linked list with frequency at least N/3
- Static and Dynamic data structures in Java with Examples
- Program to remove vowels from Linked List
- Merge two unsorted linked lists to get a sorted list
- Program to delete all even nodes from a Singly Linked List
- Remove all even parity nodes from a Doubly and Circular Singly Linked List
- Remove all the Even Digit Sum Nodes from a Circular Singly Linked List
- Remove all nodes from a Doubly Linked List containing Fibonacci numbers
- Doubly Linked List Tutorial
- Remove the common nodes in two Singly Linked Lists
- Find last 2 survivors in N persons standing in a circle after killing next to immediate neighbour
- Sum and Product of all even digit sum Nodes of a Singly Linked List
- Sum and Product of nodes with value as even digit sum in Circular Linked List
- Next greater element in the Linked List
- First Fit algorithm in Memory Management using Linked List
- Delete continuous nodes with sum K from a given linked list

Given a Singly Linked List which has data members sorted in ascending order. Construct a Balanced Binary Search Tree which has same data members as… Read More »

Given a Singly Linked List, write a function to delete a given node. Your function must follow following constraints: 1) It must accept a pointer… Read More »

Consider simple representation (without any dummy node) of Linked List. Functions that operate on such Linked lists can be divided in two categories: 1) Functions… Read More »

Given two numbers represented by two lists, write a function that returns the sum list. The sum list is list representation of the addition of… Read More »

An ordinary Doubly Linked List requires space for two address fields to store the addresses of previous and next nodes. A memory efficient version of… Read More »

Write a function detectAndRemoveLoop() that checks whether a given Linked List contains loop and if loop is present then removes the loop and returns true.… Read More »

Given a Linked List of integers, write a function to modify the linked list such that all even numbers appear before all the odd numbers… Read More »

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

Given a linked list, write a function to reverse every alternate k nodes (where k is an input to the function) in an efficient way.… Read More »

Difficulty Level: Rookie Write a C function to insert a new value in a sorted Circular Linked List (CLL). For example, if the input CLL… Read More »

Both Arrays and Linked List can be used to store linear data of similar types, but they both have some advantages and disadvantages over each… Read More »

Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Example: Input: 1->2->3->4->5->6->7->8->NULL, K =… Read More »

Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes some other algorithms (such as quicksort)… Read More »

Two Linked Lists are identical when they have same data and arrangement of data is also same. For example Linked lists a (1->2->3) and b(1->2->3)… Read More »

Write a SortedMerge() function that takes two lists, each of which is sorted in increasing order, and merges the two together into one list which… Read More »