Workspace Pointer Rewiring
0d
Problem-solving patterns

Pointer Rewiring

Change a chain by preserving the old successor before linking elsewhere.

Recognition signal

The required output changes connectivity between existing nodes.

Method

Keep references to processed, current and unprocessed sections.

Worked example

Reversing A → B → C first saves B, then redirects A to null.

Common mistake

Losing the next reference can detach the remainder of the list.