Concept Flow - Clone Linked List with Random Pointer
Start with original list
Step 1: Insert cloned nodes after originals
Step 2: Assign random pointers for cloned nodes
Step 3: Separate cloned list from original
Result: Two separate lists, original and cloned
The cloning process inserts new nodes next to originals, copies random pointers, then detaches the clone list.
