Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要对一个链表进行排序,其中奇数位置的元素已经排序。我现在实现的想法非常幼稚,如下:
有没有优化的方法来实现这一点?