LeetCode Solution, Medium, 328. Odd Even Linked List
328. Odd Even Linked List
題目敘述
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.
The first node is considered odd, and the second node is even...
blog.taiwolskit.com4 min read