摘要: 1. 原始题目 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked list, 阅读全文
posted @ 2019-04-06 11:53 三年一梦 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: 2. 题目理解 判断给定链表是否为回文。即正反节点数字一样。例如1234321,无论正反都是这个。就是对称。 坑:空链 阅读全文
posted @ 2019-04-06 10:47 三年一梦 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1. 原始题目 Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represents 阅读全文
posted @ 2019-04-06 10:09 三年一梦 阅读(116) 评论(0) 推荐(0) 编辑