逆转单链表

问题 思路 cur = pre->next; post = cur=>next; cur->next = pre; cur = post; 代码  ListNode* reverseList(ListNode *root) { if (root == NULL) return root; ListNode *cur = root; ListNode *pre
相关文章
相关标签/搜索