leetcode-24-兩兩交換鏈表中的節點

class Solution { public:     ListNode* swapPairs(ListNode* head) {         if (head == NULL || head->next == NULL ) return head;         ListNode* dumhead = new ListNode(0);         dumhead->next = he
相關文章
相關標籤/搜索