DSA question set · 155 questions
Doubly Linked List DSA Practice Questions
Explore 155 DSA questions in Doubly Linked List. Practice with DSAWiser’s code editor and visualizer.
Doubly Linked ListLinked ListSortingData Structure DesignTreeDynamic ProgrammingString MatchingSliding WindowSerial SimulationComputational GeometryGraphNetwork FlowBacktrackingExact Cover
What’s in this set
The Doubly Linked List collection contains 155 problems: 56 basic, 47 easy, 40 medium, 10 hard, 2 very hard. Choose a question at your current level, or follow the collection’s order below.
Topics in this collection include Doubly Linked List, Linked List, Sorting, Data Structure Design, Tree. Each question shows its own topics and difficulty so you can decide where to begin.
Practice with the code visualizer
- Open a question in the editor and read the statement, inputs, and expected output. Predict the result for a small example before writing code.
- Write a solution and run the examples. If a result differs from your prediction, reduce the input until you can follow each step.
- Step through your code in the visualizer. Use a breakpoint to inspect the state at a specific line, then compare it with your reasoning.
Questions in this set
155 totalOpen a question in the editor to read its statement and examples. Sign in to practice.
- Create a Doubly Linked List NodeDoubly Linked List · Linked ListBasic
- Value of Head NodeDoubly Linked List · Linked ListBasic
- Value of Tail NodeDoubly Linked List · Linked ListBasic
- Count Nodes in Doubly Linked ListDoubly Linked List · Linked ListBasic
- Forward Traversal of Doubly Linked ListDoubly Linked List · Linked ListBasic
- Backward Traversal from TailDoubly Linked List · Linked ListBasic
- Verify Bidirectional Link ConsistencyDoubly Linked List · Linked ListBasic
- Check if Doubly Linked List is EmptyDoubly Linked List · Linked ListBasic
- Value of Second Node and Predecessor VerificationDoubly Linked List · Linked ListBasic
- Check if Single-Node Doubly Linked ListDoubly Linked List · Linked ListBasic
- Search for a Value in Doubly Linked ListDoubly Linked List · Linked ListBasic
- Maximum Value in Doubly Linked ListDoubly Linked List · Linked ListBasic
- Minimum Value in Doubly Linked ListDoubly Linked List · Linked ListBasic
- Count Occurrences of a ValueDoubly Linked List · Linked ListBasic
- Get k-th Node from Head (0-indexed)Doubly Linked List · Linked ListBasic
- Get k-th Node from Tail (0-indexed)Doubly Linked List · Linked ListBasic
- Sum of All Node Values in Doubly Linked ListDoubly Linked List · Linked ListBasic
- Find Index of First OccurrenceDoubly Linked List · Linked ListBasic
- Count Even Value NodesDoubly Linked List · Linked ListBasic
- Count Odd Value NodesDoubly Linked List · Linked ListBasic
- Insert Node at Head of Doubly Linked ListDoubly Linked List · Linked ListBasic
- Delete Head Node of Doubly Linked ListDoubly Linked List · Linked ListBasic
- Insert Node at Tail of Doubly Linked ListDoubly Linked List · Linked ListBasic
- Delete Tail Node of Doubly Linked ListDoubly Linked List · Linked ListBasic
- Update Value of Head NodeDoubly Linked List · Linked ListBasic
- Update Value of Tail NodeDoubly Linked List · Linked ListBasic
- Update Value of k-th Node (0-indexed)Doubly Linked List · Linked ListBasic
- Check if All Node Values are PositiveDoubly Linked List · Linked ListBasic
- Check if Doubly Linked List is Strictly IncreasingDoubly Linked List · Linked ListBasic
- Count Nodes Greater Than a ThresholdDoubly Linked List · Linked ListBasic
- Compare Two Lists for Identical LengthDoubly Linked List · Linked ListBasic
- Compare Two Lists for Identical ElementsDoubly Linked List · Linked ListBasic
- Increment All Node Values by OneDoubly Linked List · Linked ListBasic
- Check if Head Value Equals Tail ValueDoubly Linked List · Linked ListBasic
- Find First Negative Value in Doubly Linked ListDoubly Linked List · Linked ListBasic
- Replace All Occurrences of a ValueDoubly Linked List · Linked ListBasic
- Sum of Alternate Nodes (Even Indices)Doubly Linked List · Linked ListBasic
- Check if Length is EvenDoubly Linked List · Linked ListBasic
- Range of List (Max - Min)Doubly Linked List · Linked ListBasic
- Count Nodes with Value Equal to IndexDoubly Linked List · Linked ListBasic
- Multiply All Node Values by a FactorDoubly Linked List · Linked ListBasic
- Check if Any Node Has Value ZeroDoubly Linked List · Linked ListBasic
- Second-to-Last Node Value via Prev PointerDoubly Linked List · Linked ListBasic
- Insert Node After HeadDoubly Linked List · Linked ListBasic
- Count Nodes Strictly Less Than a ThresholdDoubly Linked List · Linked ListBasic
- Average of All Node ValuesDoubly Linked List · Linked ListBasic
- Convert Array to Doubly Linked ListDoubly Linked List · Linked ListBasic
- Check if List Has Adjacent Equal ValuesDoubly Linked List · Linked ListBasic
- Insert Node Before TailDoubly Linked List · Linked ListBasic
- Clear Doubly Linked ListDoubly Linked List · Linked ListBasic
- Count Nodes with Equal Predecessor and SuccessorDoubly Linked List · Linked ListBasic
- Count Nodes Dominating All Preceding NodesDoubly Linked List · Linked ListBasic
- Deep Copy of Doubly Linked ListDoubly Linked List · Linked ListBasic
- Maximum Difference Between Adjacent NodesDoubly Linked List · Linked ListBasic
- Parallel Node-Wise Sum of Two ListsDoubly Linked List · Linked ListBasic
- Scale Node Values by Distance from HeadDoubly Linked List · Linked ListBasic
- Reverse a Doubly Linked ListDoubly Linked List · Linked ListEasy
- Delete Node at Index kDoubly Linked List · Linked ListEasy
- Insert Node at Index kDoubly Linked List · Linked ListEasy
- Check if Doubly Linked List is a PalindromeDoubly Linked List · Linked ListEasy
- Find Pairs with Given Sum in Sorted Doubly Linked ListDoubly Linked List · Linked List · SortingEasy
- Delete All Occurrences of a ValueDoubly Linked List · Linked ListEasy
- Remove Duplicates from Sorted Doubly Linked ListDoubly Linked List · Linked List · SortingEasy
- Delete Given Node in O(1) TimeDoubly Linked List · Linked ListEasy
- Middle of Doubly Linked ListDoubly Linked List · Linked ListEasy
- Insert into Sorted Doubly Linked ListDoubly Linked List · Linked List · SortingEasy
- Move Last Node to FrontDoubly Linked List · Linked ListEasy
- Merge Two Sorted Doubly Linked ListsDoubly Linked List · Linked List · SortingEasy
- Split Doubly Linked List into Two HalvesDoubly Linked List · Linked ListEasy
- Swap Head and Tail NodesDoubly Linked List · Linked ListEasy
- Delete Alternate NodesDoubly Linked List · Linked ListEasy
- Remove Duplicates from an Unsorted Doubly Linked ListDoubly Linked List · Linked ListEasy
- Check if Doubly Linked List is CircularDoubly Linked List · Linked ListEasy
- Move Minimum Element to HeadDoubly Linked List · Linked ListEasy
- Move Maximum Element to TailDoubly Linked List · Linked ListEasy
- Segregate Even and Odd Value NodesDoubly Linked List · Linked ListEasy
- Interleave Two Doubly Linked ListsDoubly Linked List · Linked ListEasy
- Remove Nodes Greater Than a ThresholdDoubly Linked List · Linked ListEasy
- Count Triplets with Given Sum in Sorted Doubly Linked ListDoubly Linked List · Linked List · SortingEasy
- Find Left Middle Node in Doubly Linked ListDoubly Linked List · Linked ListEasy
- Reverse First k Nodes of Doubly Linked ListDoubly Linked List · Linked ListEasy
- Smallest Common Element of Two Sorted Doubly Linked ListsDoubly Linked List · Linked List · SortingEasy
- Remove Odd Values at Odd IndicesDoubly Linked List · Linked ListEasy
- Move All Occurrences of Value to TailDoubly Linked List · Linked ListEasy
- Swap k-th Node from Beginning and EndDoubly Linked List · Linked ListEasy
- Overlap of Two Forward Ranges in a Doubly Linked ListDoubly Linked List · Linked ListEasy
- Valid Palindrome After at Most One DeletionDoubly Linked List · Linked ListEasy
- Check for Alternating Parity in Doubly Linked ListDoubly Linked List · Linked ListEasy
- Remove All Local PeaksDoubly Linked List · Linked ListEasy
- Compress Contiguous Duplicate Blocks by SumDoubly Linked List · Linked ListEasy
- Keep Only Positive Nodes in Doubly Linked ListDoubly Linked List · Linked ListEasy
- Check if Two Doubly Linked Lists are PermutationsDoubly Linked List · Linked ListEasy
- Median of Sorted Doubly Linked ListDoubly Linked List · Linked List · SortingEasy
- Reverse the Suffix of a Doubly Linked ListDoubly Linked List · Linked ListEasy
- Remove Every k-th Node in Doubly Linked ListDoubly Linked List · Linked ListEasy
- Add One via Backward TraversalDoubly Linked List · Linked ListEasy
- Split Doubly Linked List at Position kDoubly Linked List · Linked ListEasy
- Segregate 0s, 1s, and 2s in Doubly Linked ListDoubly Linked List · Linked ListEasy
- Delete N Nodes After M Nodes in Doubly Linked ListDoubly Linked List · Linked ListEasy
- Construct 2D Doubly Linked GridDoubly Linked List · Linked ListEasy
- Double a Number via In-Place Backward PassDoubly Linked List · Linked ListEasy
- Multiply Number by Single Digit In-PlaceDoubly Linked List · Linked ListEasy
- Bidirectional Move-to-Front Doubly Linked List with Cost TrackingDoubly Linked List · Linked ListEasy
- Pairwise Swap Nodes in Doubly Linked ListDoubly Linked List · Linked ListMedium
- Rotate Doubly Linked List by k PlacesDoubly Linked List · Linked ListMedium
- Partition Doubly Linked List Around Value XDoubly Linked List · Linked ListMedium
- Flatten a Multilevel Doubly Linked ListDoubly Linked List · Linked ListMedium
- LRU Cache with Sentinel Doubly Linked ListDoubly Linked List · Linked List · Data Structure DesignMedium
- Design Browser HistoryDoubly Linked List · Linked List · Data Structure DesignMedium
- Design Front Middle Back QueueDoubly Linked List · Linked List · Data Structure DesignMedium
- Reorder Doubly Linked ListDoubly Linked List · Linked ListMedium
- Sort Doubly Linked List using Merge SortDoubly Linked List · Linked List · SortingMedium
- Convert Binary Search Tree to Circular Doubly Linked ListDoubly Linked List · Linked List · TreeMedium
- Remove Duplicates from Sorted Doubly Linked List IIDoubly Linked List · Linked List · SortingMedium
- Reverse Doubly Linked List in Groups of Size kDoubly Linked List · Linked ListMedium
- Insertion Sort for Doubly Linked ListDoubly Linked List · Linked List · SortingMedium
- Design Text Editor CursorDoubly Linked List · Linked List · Data Structure DesignMedium
- Find Quadruplets with Given Sum in Sorted Doubly Linked ListDoubly Linked List · Linked List · SortingMedium
- Longest Palindromic Sublist in Doubly Linked ListDoubly Linked List · Linked ListMedium
- Convert Sorted Doubly Linked List to Balanced BSTDoubly Linked List · Linked List · Sorting · TreeMedium
- QuickSort on Doubly Linked ListDoubly Linked List · Linked List · SortingMedium
- Split Doubly Linked List in PartsDoubly Linked List · Linked ListMedium
- Remove Nodes with Greater Value on Right via Backward PassDoubly Linked List · Linked ListMedium
- Critical Points and Distances in Doubly Linked ListDoubly Linked List · Linked ListMedium
- Merge Nodes in Between Zeros in Doubly Linked ListDoubly Linked List · Linked ListMedium
- Reverse Alternate Groups of k Nodes in Doubly Linked ListDoubly Linked List · Linked ListMedium
- Add Two Numbers via Direct Backward PassDoubly Linked List · Linked ListMedium
- Subtract Two Numbers via Direct Backward PassDoubly Linked List · Linked ListMedium
- Rearrange Doubly Linked List in Zig-Zag PatternDoubly Linked List · Linked ListMedium
- Rearrange Doubly Linked List in Max-Min OrderDoubly Linked List · Linked ListMedium
- Circular Doubly Linked List Josephus EliminationDoubly Linked List · Linked ListMedium
- Merge k Sorted Doubly Linked ListsDoubly Linked List · Linked List · SortingMedium
- Reverse Nodes in Even Length Groups on Doubly Linked ListDoubly Linked List · Linked ListMedium
- Time-To-Live (TTL) Ordered Cache with Doubly Linked ListDoubly Linked List · Linked List · Data Structure DesignMedium
- Continuous Stream Median Tracker using Doubly Linked ListDoubly Linked List · Linked List · Data Structure DesignMedium
- Maximum Subsegment Sum with At Most One Node DeletionDoubly Linked List · Linked List · Dynamic ProgrammingMedium
- KMP Sublist Pattern Matching on Doubly Linked ListDoubly Linked List · Linked List · String MatchingMedium
- Merge k Sorted Circular Doubly Linked ListsDoubly Linked List · Linked List · SortingMedium
- Iterative Bottom-Up Merge Sort on Doubly Linked ListDoubly Linked List · Linked List · SortingMedium
- In-Place Binary Radix Sort on Doubly Linked ListDoubly Linked List · Linked List · SortingMedium
- Sublist Anagram Search on Doubly Linked ListDoubly Linked List · Linked List · Sliding WindowMedium
- Reverse Alternating Blocks of Sizes k and mDoubly Linked List · Linked ListMedium
- Serial Doubly Linked Set with Observable Deletion MarksDoubly Linked List · Linked List · Serial SimulationMedium
- LFU (Least Frequently Used) CacheDoubly Linked List · Linked List · Data Structure DesignHard
- All O(1) Data StructureDoubly Linked List · Linked List · Data Structure DesignHard
- Reverse Nodes in k-Group on Doubly Linked ListDoubly Linked List · Linked ListHard
- Minimum Cuts for Palindromic Partitioning of Doubly Linked ListDoubly Linked List · Linked List · Dynamic ProgrammingHard
- Doubly-Connected Edge List (DCEL / Half-Edge Data Structure)Doubly Linked List · Linked List · Data Structure Design · Computational GeometryHard
- Unrolled Doubly Linked Deque with Block RebalancingDoubly Linked List · Linked List · Data Structure DesignHard
- Deterministic Doubly Linked Express Set with Rebuilt LevelsDoubly Linked List · Linked ListHard
- Doubly Linked Character Rope with Lazy ReversalsDoubly Linked List · Linked List · Data Structure DesignHard
- Dynamic Circular Residual Edge Network with Twin PointersDoubly Linked List · Linked List · Data Structure Design · Graph · Network FlowHard
- Bit-Packed Relative-Offset Doubly Linked ArenaDoubly Linked List · Linked List · Data Structure DesignHard
- Knuth's Dancing Links (DLX) with Primary and Secondary ColumnsDoubly Linked List · Linked List · Backtracking · Exact CoverVery hard
- Fully Persistent Doubly Linked List via Fat-Node MethodDoubly Linked List · Linked List · Data Structure DesignVery hard