practice a little every day — you've got this ♡
Linked Lists Interview Problems
Practice 5966 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.
- 5966
- Problems
- 2209
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 1–30 of 38 results
- Linked ListsMediumAuto-gradedMin, Reverse, and Staircase Search in One Function
Compute a list's minimum, its reversal, and whether a target exists in a row- and column-sorted matrix, all in one combined function.
Linked Listslinked-listreversalmatrix-searchtwo-pointers - Linked ListsEasyAuto-gradedFilter Alternate Nodes in a Sequence
Tests the ability to process a linear collection by dropping elements at even 1-based index positions.
Linked Listslinked-listsarrayspointers - Linked ListsMediumAuto-gradedLocate the Junction of Two Chains in a Successor Table
Find the first node of one chain that also lies on a second chain, where both chains are encoded in a single successor array, or report -1 if they never converge.
Linked Listslinked-listhash-settwo-pointersintersection - Linked ListsEasyAuto-gradedExchange the Front Element with the k-th From the Back
Tests index arithmetic and edge-case handling by swapping the first element of a sequence with its k-th element counted from the end, including the case where both are the same element.
Linked Listslinked-listtwo-pointersswapedge-cases - Linked ListsHardAuto-gradedLocate Duplicate Integer with Strict Space Limit
Find the single repeated value in an array of size n + 1 containing integers from 1 to n without altering the array or using extra space.
Linked Liststwo-pointersarrayslinked-listfloyds-algorithm - Linked ListsEasyAuto-gradedCombine Two Sorted Sequences
Merge two non-decreasing sequences into a single sorted sequence, maintaining stable order on equal values.
Linked Liststwo-pointerslinked-listarrayssorting - Linked ListsMediumAuto-gradedFlip Every Complete Block of K in a Sequence
Reverse each full consecutive block of k items in a list, leaving a shorter leftover tail unchanged; tests pointer-style reversal logic and boundary handling.
Linked Listslinked-listin-place-reversaltwo-pointerssimulation - Linked ListsMediumAuto-gradedDuplicate Linked List with Arbitrary Pointers
Demonstrate deep copying of a sequential structural chain featuring auxiliary target links via node-level or serialized array transformations.
Linked Listslinked-listsarraysdeep-copy - Linked ListsEasyAuto-gradedDual Pointer Assessment: Loop Detection and Ordered Pair Sum
Evaluate two algorithmic challenges using the two-pointer technique: detecting cyclic pointer references and locating index pairs for a target sum in an ordered list.
Linked Listslinked-liststwo-pointersarrays - Linked ListsMediumAuto-gradedClone a Linked List with Arbitrary Jump Links
Build an independent duplicate of a linked list whose nodes carry both a next link and an arbitrary jump link, using a serialized list-of-records format.
Linked Listslinked-listhash-mapdeep-copypointers - Linked ListsEasyAuto-gradedReverse a Sequence of Node Values
Tests the ability to reverse a sequential list of numbers efficiently, mimicking linked list reversal operations.
Linked Listslinked-listsarrayspointers - Linked ListsHardAuto-gradedConvert Multi-Level Branching List to Doubly Linked List
Flatten a tree-like linked structure with main and side links into a single doubly linked sequence using preorder traversal.
Linked Listslinked-liststrees-graphsstacks-queues - Linked ListsMediumAuto-gradedFlip Every Block of K Consecutive Values in a Sequence
Reverse each full consecutive block of k elements in a list of values, leaving a short trailing remainder untouched, using the pointer-based linked-list technique.
Linked Listslinked-listin-placepointerssimulation - Linked ListsEasyAuto-gradedCombine Two Ascending Sequences Into One
Tests a two-pointer merge of two non-decreasing integer lists into a single sorted list, handling empty inputs and duplicate values correctly.
Linked Liststwo-pointersmergesorting - Linked ListsMediumAuto-gradedClone a Linked Chain with Arbitrary Jump Links
Build a singly linked list with extra jump pointers from index arrays, deep-copy it without sharing nodes, and report the copy's structure by index.
Linked Listslinked-listhash-mapdeep-copypointers - Linked ListsMediumAuto-gradedWalking Both Ways to Measure a Doubly Linked Chain
Given neighbor links for a group of disjoint chains, count how many nodes sit in the chain containing a given start node.
Linked Listslinked-listtraversaltwo-pointerssimulation - Linked ListsHardAuto-gradedFind Where Two Linked Lists Merge
Tests pointer manipulation and list traversal to locate the merge point of two singly linked lists in linear time with constant space.
Linked Liststwo-pointerslinked-listspointer-manipulation - Linked ListsMediumAuto-gradedReorder Linked List by Zigzag Level Buckets
Tests pointer-manipulation intuition by reordering a singly-linked list (given as an array) into a zigzag pattern based on partitioning nodes into fixed-size buckets.
Linked Listslinked listsarray manipulationreordering - Linked ListsMediumAuto-gradedDetect Functional-Graph Cycle Start on an Index Array
Tests cycle detection (Floyd's or similar) on an implicit linked list encoded as a next-pointer array, requiring the candidate to find where the cycle begins.
Linked Listslinked listscycle detectiontwo pointersFloyd's algorithm - Linked ListsMediumAuto-gradedSingly Linked List Symmetry Check (Non-Destructive)
Tests whether a candidate can verify palindrome structure on a singly linked list in O(n) time and O(1) space while restoring every pointer before returning.
Linked Liststwo-pointerslinked-listsin-place - Linked ListsMediumAuto-gradedOrdered Stage Queue: Simulate Item Promotion and Demotion
Tests whether a candidate can model item movement across ordered stages using a normalized O(1)-per-move doubly linked list structure.
Linked Listslinked-listsimulationdesign - Linked ListsMediumAuto-gradedInterleave Two Linked Lists by Position Parity
Tests pointer manipulation and node reordering by splitting a singly linked list (given as an array) into odd- and even-indexed sublists and merging them in a specific interleaved pattern.
Linked Listslinked listspointer manipulationreorderingarray simulation - Linked ListsMediumAuto-gradedInterleave Two Linked Lists from Their Midpoints
Tests pointer-manipulation reasoning by reordering a singly linked list (given as an array) so nodes alternate between the first and second halves, starting from their respective midpoints.
Linked Listslinked liststwo pointersarray manipulation - Linked ListsEasyAuto-gradedWeave Two Halves of a Linked List
Tests pointer manipulation intuition by reordering a singly linked list represented as an array, interleaving nodes from the front and back halves.
Linked Listslinked liststwo pointersarray manipulation - Linked ListsEasyAuto-gradedFlatten a Linked List in K-Group Level Order
Tests pointer manipulation by collecting nodes from a singly linked list in chunks of k, then reversing the order within each chunk's values to produce a flat list.
Linked Listslinked listsk-group operationspointer manipulation - Linked ListsHardAuto-gradedInterleave Linked List Halves by Node Values
Tests pointer-manipulation intuition by reordering a linked list (given as an array) into a specific interleaved pattern derived from splitting and reversing halves.
Linked Listslinked listsarray manipulationtwo pointers - Linked ListsMediumAuto-gradedFind the Duplicate and Cycle Length in a Functional Graph
Tests cycle detection on an index-as-next-pointer array to find the single duplicate value and the length of the cycle it creates.
Linked Listslinked listscycle detectionFloyd's algorithm - Linked ListsMediumAuto-gradedInterleave Two Halves of a Linked List (Array Form)
Tests pointer-manipulation thinking by reordering a node list so that the first half and reversed second half are interleaved, all represented as arrays of values.
Linked Listslinked listtwo pointersarray manipulation - Linked ListsMediumAuto-gradedMerge K Sorted Linked-List Runs Into One
Tests pointer manipulation by merging k sorted singly-linked-list segments (given as flat lists with run boundaries) into a single sorted list without allocating extra nodes.
Linked Listslinked listsmergesortingpointer manipulation - Linked ListsHardAuto-gradedDetect Merge Point of Two Rho-Shaped Index Chains
Tests mastery of Floyd's cycle-detection algorithm and two-pointer merge-point finding applied to implicit linked lists encoded as index arrays.
Linked Listslinked listscycle detectiontwo pointers