## Memory efficient doubly linked list

Asked by Varun Bhatia. Question: Write a code for implementation of doubly linked list with use of single pointer in each node. Solution: This question… Read More »

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

Asked by Varun Bhatia. Question: Write a code for implementation of doubly linked list with use of single pointer in each node. Solution: This question… Read More »

You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list.… Read More »

Asked by Varun Bhatia. Question: Write a recursive function treeToList(Node root) that takes an ordered binary tree and rearranges the internal pointers to make a… Read More »

Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false. Recommended: Please solve… Read More »

Given a linked list, check if the linked list has loop or not. Below diagram shows a linked list with a loop. Recommended: Please solve… Read More »

Given pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by… Read More »

A simple solution is to traverse the linked list until you find the node you want to delete. But this solution requires pointer to the… Read More »

Given a singly linked list and a key, count number of occurrences of given key in linked list. For example, if given linked list is… Read More »

Algorithm For C/C++: Iterate through the linked list and delete all the nodes one by one. Main point here is not to access next of… Read More »

Given a Linked List and a number n, write a function that returns the value at the n’th node from the end of the Linked… Read More »

Given a singly linked list, find middle of the linked list. For example, if given linked list is 1->2->3->4->5 then output should be 3. If… Read More »

Given a pointer to a node to be deleted, delete the node. Note that we don’t have pointer to head node. Recommended: Please solve it… Read More »

Write a GetNth() function that takes a linked list and an integer index and returns the data value stored in the node at that index… Read More »