KatInterview

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-graded
    Min, 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-graded
    Filter 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-graded
    Locate 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-graded
    Exchange 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-graded
    Locate 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-graded
    Combine 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-graded
    Flip 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-graded
    Duplicate 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-graded
    Dual 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-graded
    Clone 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-graded
    Reverse 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-graded
    Convert 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-graded
    Flip 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-graded
    Combine 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-graded
    Clone 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-graded
    Walking 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-graded
    Find 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-graded
    Reorder 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-graded
    Detect 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-graded
    Singly 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-graded
    Ordered 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-graded
    Interleave 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-graded
    Interleave 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-graded
    Weave 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-graded
    Flatten 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-graded
    Interleave 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-graded
    Find 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-graded
    Interleave 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-graded
    Merge 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-graded
    Detect 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