Why not attach E to C first?
You can, but you still need a safe chain from the existing list to the new nodes. The important part is preserving reachability throughout the sequence.
LazyCoder
Practice inserting new nodes into the middle of a list without breaking the existing chain.
When you add nodes in the middle of a list, every pointer assignment changes what remains reachable. The safe order is the one that preserves a path to the old remainder at every step.
This exercise builds the habit of thinking in links, not just node values. That habit is the difference between solving insertion questions quickly and getting lost in edge cases.
You can, but you still need a safe chain from the existing list to the new nodes. The important part is preserving reachability throughout the sequence.
No. Middle insertions usually keep the same head and only change local links.