LeetCode: 328-Odd Even Linked List 解題紀錄
Last Updated on 2022-12-06 by Clay
題目
Given the head
of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
Last Updated on 2022-12-06 by Clay
Given the head
of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.