摘要: Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 思路: 1、 利用快慢指针找到链表中点 2、从中点开始反转链表,判断 阅读全文
posted @ 2017-09-23 22:46 乐乐章 阅读(270) 评论(0) 推荐(0) 编辑