Leetcode——24. 兩兩交換鏈表中的節點

題目傳送門node /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* swapPairs(
相關文章
相關標籤/搜索