摘要: ques: 判断一个链表是否回文 Could you do it in O(n) time and O(1) space? method:先将链表分为两部分,将后半部分反转,最后从前往后判断是否相等。 topic: 链表,链表反转 阅读全文
posted @ 2018-01-08 22:04 Sherry_Yang 阅读(81) 评论(0) 推荐(0) 编辑