登录社区云,与社区用户共同成长
邀请您加入社区
该用户还未填写简介
暂无可提供的服务
ListNode* reverseList(ListNode* head) {if(!head || !head->next){return head;}ListNode* temp=reverseList(head->next);head->next->next=head;head->next=nullptr;return temp;}