Linked Lists

Learn linked list operations before practising reversal, cycles, pointer patterns and more involved interview applications.

16 online
Overall Progress
PLUS – Videos, editorials, planner all in one place – Videos, editorials, personalised planner & TUFY all in one place to save your time.

Planly

Know more

Striver’s Linked List Sheet contains 44 coding questions. It retains the original 24-question selection and adds 20 basic singly and doubly linked list operations from A2Z. Traversal, search, length, insertion and deletion now have their own practice coverage before reversal, cycles, pointer patterns and more involved applications.

Striver’s Linked List Sheet brings together 24 problems on reversal, two pointers, cycles, shared nodes, arithmetic and restructuring. It also includes doubly linked list applications, where both next and previous connections must remain correct. The aim is to help you recognise a small set of ideas and apply them carefully when the required output changes.

Treat each attempt as a check of the whole structure. Returning the expected values is only part of the task: the list must also end correctly, preserve the required nodes and avoid unintended cycles. Explaining what each reference means makes both your code and your interview discussion easier to follow.

Topics covered in this practice sheet

Singly linked list foundations include visiting nodes, finding the length, searching, deleting at the head or tail, deleting by position or value, and inserting at specified locations. Doubly linked list foundations include building a list from an array and updating both links during insertion or deletion. These operations prepare learners to follow how a later algorithm changes the list.

  • Singly linked list traversal, length, search, insertion and deletion.
  • Doubly linked list construction and insertion/deletion at specified locations.
  • Reversal, cycles, pointer patterns and the retained interview applications.

Beginner lessons and prerequisites

The existing linked list lessons introduce singly and doubly linked nodes, insertion and deletion. Understand references or pointers, a missing link, object or node creation, and how changing a link differs from changing the value stored in a node. The shared beginner memory lessons provide additional background where relevant to the chosen language.

Be comfortable traversing a list, recognising an empty head and distinguishing a node from its value. Two different nodes may contain the same value, so equal values do not establish an intersection. Know how your language represents a missing reference and whether your implementation must explicitly release removed nodes.

Also separate the cost of finding a position from the cost of changing a link. Insertion after an already known node can take constant link-update work, but locating that node may require a linear traversal. A dummy node can simplify head changes, provided you return the real head rather than the dummy itself.