摘要: 题目描述: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? 这题思路就是把单链表的前半部分或后半部分反转,然后比较。s... 阅读全文
posted @ 2015-07-25 18:35 Sawyer Ford 阅读(186) 评论(0) 推荐(0) 编辑