- 1
Nodes & Traversal
A node holds a value and a link to the next node; walk the list until null.
Complete codeDebugCode orderMultiple choiceTapTrace - 2
Insert & Delete
Rewire next pointers to insert or remove a node in constant time.
Complete codeDebugCode orderMultiple choiceTapTrace - 3
Linked List Basics CheckpointCheckpoint
Prove you can traverse and rewire a linked list before tackling pointer tricks.
Complete codeDebugCode orderFill blankMultiple choiceTapTrace - 4
Reverse a Linked List
Flip every next pointer in one pass using prev, curr, and a saved next.
Complete codeDebugCode orderMultiple choiceTrace - 5
Find the Middle
Advance a slow pointer by one and a fast pointer by two to land on the middle.
Complete codeDebugMultiple choiceTapTrace - 6
Cycle Detection
Detect a loop with Floyd's fast and slow pointers, in constant space.
Complete codeDebugFill blankMultiple choiceTrace - 7
Merge Two Sorted Lists
Weave two sorted lists into one by always attaching the smaller current node.
Complete codeDebugCode orderMultiple choiceTapTrace - 8
Linked Lists ReviewReview
Revisit the trickiest ideas: saving next before rewiring, fast/slow guards, and merging.
Complete codeDebugFill blankMultiple choiceTapTrace - 9
Boss: Reverse a Linked ListBoss
Build the complete iterative reversal, pointer by pointer.
Complete codeDebugCode orderMultiple choiceTrace