KatInterview

practice a little every day — you've got this ♡

Linked Lists Interview Problems

Practice 5965 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.

5965
Problems
2208
Auto-graded
15
Topics
271
Added today

Showing 1–2 of 2 results

  • Linked ListsMediumModel answer
    Unlink From the Tail and Prune a Tree by Leaf Swap

    Two pointer-manipulation tasks: remove the k-th node from the tail of a singly linked list, and delete a value from a general binary tree by overwriting it with the deepest-rightmost node's value.

    Linked Listslinked-listtwo-pointersbinary-treebfs
  • Linked ListsMediumModel answer
    Sequence Storage Trade-offs: Contiguous Arrays vs Pointer Chains

    Contrast contiguous arrays, linked lists, and unrolled lists for indexed reads, inserts, growth, traversal speed, and cache behavior, and say when each one wins.

    Linked Listsarrayslinked-listsunrolled-linked-listcache-locality