摘要: leetcode 206 https://leetcode-cn.com/problems/reverse-linked-list 给你单链表的头节点 head ,请你反转链表,并返回反转后的链表。 示例 1: 输入:head = [1,2,3,4,5] 输出:[5,4,3,2,1] 示例 2: 输 阅读全文
posted @ 2021-09-26 19:56 星星里的花 阅读(153) 评论(0) 推荐(0) 编辑