Double a Number Represented as a Linked List
LeetCode problem #2816
Add Two Numbers
Add two numbers represented as linked lists where digits are stored in reverse order
Circular Linked List Detection
Detect if a linked list has a cycle and find the starting point of the cycle
Copy List with Random Pointer
Create a deep copy of a linked list where each node has a random pointer
Detect Cycle in Linked List
Detect if a linked list has a cycle using Floyd's cycle detection algorithm
Find Middle of Linked List
Find the middle node of a linked list using the two-pointer technique
Flatten Binary Tree to Linked List
Flatten a binary tree into a linked list in-place using preorder traversal.
Flatten Multilevel Linked List
Flatten a multilevel doubly linked list into a single level
Implement Queue
Implement a queue using arrays or linked lists with O(1) time complexity for all operations.
Implement Stack
Design and implement a stack data structure with push, pop, top, and empty operations
Intersection of Two Linked Lists
Find the intersection node of two linked lists
LC 237 Delete Node in Linked List (O(1) Trick)
Learn the optimal O(1) in-place “copy-and-skip” to delete a node in a linked list without head/prev. Easy interview prep—see examples.
LC 25 Reverse Nodes in k-Group (Linked List) | O(1)
Reverse linked list in k groups (Hard): in-place pointer reversal with dummy node. Optimal O(n) time, O(1) space—step-by-step solution.
LRU Cache
Design a data structure that follows Least Recently Used (LRU) eviction with O(1) get and put operations.
Merge k Sorted Linked Lists
Merge k sorted linked lists into one sorted linked list
Merge Two Sorted Lists
Merge two sorted linked lists into one sorted linked list
Palindrome Linked List
Check if a linked list is a palindrome using O(1) extra space
Partition List
Partition a linked list around a value x such that all nodes less than x come before nodes greater than or equal to x
Remove Duplicates from Sorted List
Remove all duplicate values from a sorted linked list
Remove Nth Node From End of List
Remove the nth node from the end of a linked list in one pass
Reorder List
Reorder a linked list by interleaving nodes from the beginning and end
Reverse a Linked List
Reverse a singly linked list in-place and return the new head.
Reverse Linked List (LC 206) — 3-Pointer In-Place
Learn how to reverse a singly linked list (LeetCode 206) with the optimal 3-pointer iterative method: O(n) time, O(1) space. Practice now.
Rotate Linked List
Rotate a linked list to the right by k places
Sort Linked List
Sort a linked list in O(n log n) time using constant extra space
Swap Nodes in Pairs
Swap every two adjacent nodes in a linked list