KatInterview

Topic

Linked Lists interview problems

Pointer manipulation, cycles and list merging. 40 original problems, each with hidden test cases you can run in the browser.

Problems40

12 easy22 medium6 hard

Showing 31–40 of 40 results

  • 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.

    Auto-gradedlinked listsmergesortingpointer manipulation
  • Tests mastery of Floyd's cycle-detection algorithm and two-pointer merge-point finding applied to implicit linked lists encoded as index arrays.

    Auto-gradedlinked listscycle detectiontwo pointers
  • Tests cycle detection on implicit linked lists encoded as index arrays, applying Floyd's tortoise-and-hare algorithm to find where a cycle begins.

    Auto-gradedlinked listscycle detectiontwo pointers
  • Tests ability to merge multiple sorted runs stored as a flat list of values, exercising the core linked-list merge-sorted-runs technique in pure Python.

    Auto-gradedlinked listsmergingsorting
  • Tests cycle detection via Floyd's / index-chasing on a pure-array functional graph, requiring candidates to identify every node's "tail length" before it enters a cycle.

    Auto-gradedlinked listscycle detectiongraphsarrays
  • Tests cycle detection on index arrays by finding the entry node of a rho-shaped path in a functional graph encoded as a plain list.

    Auto-gradedlinked listscycle detectiontwo pointers
  • Tests pointer-manipulation intuition by reordering a singly linked list (given as an array) in a front-back-front-back zigzag pattern.

    Auto-gradedlinked liststwo pointersarray manipulation
  • Tests pointer manipulation by merging a singly-linked list that is already partitioned into consecutive ascending runs into a single sorted list.

    Auto-gradedlinked listsmergingsortingpointer manipulation
  • Tests pointer manipulation by implementing bottom-up merge sort on a singly linked list represented as a dict-based node structure.

    Auto-gradedlinked listsmerge sortpointer manipulation
  • Tests cycle detection on an index-based "next" array by finding where the tail of a rho-shaped sequence first enters its cycle.

    Auto-gradedlinked listscycle detectiontwo pointers

More topics