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
相关文章
相关标签/搜索