LeetCode 24. Swap Nodes in Pairs | 交換兩個node(鏈表)

鏈表交換兩個node Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be changed.   Example: Given 1->2->3->4, you
相關文章
相關標籤/搜索