题目内容 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.大概意思是说每两个节点为一组交换位置.只使用常量空间,不能修改链表的值,只能修改链表的指针 解法(迭代) class Solution { public: ListNode* s…