Write a function that rearranges a linked list to put the nodes in even positions after the nodes in odd positions in the list
问题 Write a function that rearranges a linked list to put the nodes in even positions after the nodes in odd positions in the list, preserving the relative order of both the evens and the odds. I found this problem in the book Algorithm in c writtern by Sedgewick. I have tried but failed. I trid to put all nodes in even positions on another linked list. It's grateful for you to help me. A good idea is enough. Thanks :). This is my Code in C. /* * File: rearranges.c <Exercise 3.36> * Note: Write a