Writing a merge method for lists
问题 I'm trying to write a method that merges a doubly linked list in an alternating fashion. So if we have two int lists (0,1,2,3) and (4,5,6), we'd just have one final list of (0,4,1,5,2,6,3). Each list has a head, a tail, a next, and a prev pointer. Its hurting my mind to try to figure out where to start or how this would work. I've tried to trace it on paper, but no progress. Can anyone guide me in the right direction? Whats a good way to 'picture' this or plan for it, as I dont even know