Day 3 - Linked ListsPractice QuestionsProblem List

Practice Questions

Here is a curated list of practice questions to test your understanding of linked lists.

Try to solve these on your own before looking at the solutions! Start with Easy problems and work your way up. The two-pointer (slow/fast) technique appears in many of these — master it and you’ll fly through the list.

Easy

ProblemTechniqueStatus
Middle of the Linked ListTwo Pointers (slow/fast)Available
Linked List CycleTwo Pointers (Floyd’s)Available
Convert Binary Number in a Linked List to IntegerTraversalAvailable
Remove Duplicates from Sorted ListTwo PointersAvailable
Merge Two Sorted ListsTwo Pointers / RecursionAvailable
Multiply Two Numbers Represented by Linked ListsTraversal + MathAvailable
Intersection of Two Linked ListsTwo PointersAvailable
Delete Node in a Linked ListNode ManipulationAvailable
Palindrome Linked ListSlow/Fast + ReverseAvailable

Medium

ProblemTechniqueStatus
Reverse Linked List IITwo Pointers + ReversalComing Soon
Add Two NumbersTraversal + CarryComing Soon
Remove Nth Node from End of ListTwo PointersComing Soon
Reorder ListSlow/Fast + MergeComing Soon
Copy List with Random PointerHash MapComing Soon

Hard

ProblemTechniqueStatus
Merge k Sorted ListsDivide & Conquer / HeapComing Soon
Reverse Nodes in k-GroupRecursion + Pointer RewiringComing Soon
Flatten a Multilevel Doubly Linked ListDFS / RecursionComing Soon

These are great follow-up problems to solidify your understanding:

ProblemPlatformTechnique
Sort ListLeetCodeMerge Sort on LL
Sort 0s, 1s and 2sGFGDutch National Flag
Partition ListLeetCodeTwo Lists + Merge
Segregate Even and OddGFGTwo Pointers
Merge Sort for Linked ListGFGDivide & Conquer
Flattening a Linked ListGFGMerge + Recursion
Subtract Two Numbers as Linked ListsGFGTraversal + Math