/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* ReverseList(ListNode* pHead) { //处理空链表 if(pHead == nullptr){ return nullptr; } ListNode* cur = pHead; //创建当前指针指向头节点 ListNode* pre = nullp...