摘要: 1 题目 给你单链表的头结点 head ,请你找出并返回链表的中间结点。 如果有两个中间结点,则返回第二个中间结点。 示例 1: 输入:head = [1,2,3,4,5] 输出:[3,4,5] 解释:链表只有一个中间结点,值为 3 。 示例 2: 输入:head = [1,2,3,4,5,6] 输 阅读全文
posted @ 2024-01-18 07:28 酷酷- 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1 题目 You are given the head of a singly linked-list. The list can be represented as: L0 → L1 → … → Ln - 1 → Ln Reorder the list to be on the following 阅读全文
posted @ 2024-01-18 07:18 酷酷- 阅读(3) 评论(0) 推荐(0) 编辑