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