LeetCode——1、链表

〇、目录 一、反转链表 1、简单版:反转全部节点 class Solution { public: ListNode* reverseList(ListNode* head) { ListNode* newhead=NULL; while(head) { ListNode* nex=head->next;
相关文章
相关标签/搜索