Insert a Linked List into Another Within an Index Range
viaLeetCode
Given two linked lists, insert the second linked list into the first between a given range of positions (e.g., remove/replace nodes in [a, b] of the first list and splice in the second list). Walk to the node before position a, connect to the head of the second list, walk to its tail, and reconnect to the node after position b.
asked …