2017年12月23日

leetcode:234. Palindrome Linked List

摘要: 这个题目非常好。http://blog.csdn.net/u012249528/article/details/47124771给出了三种解法,其中前两个是不满足条件的,不过具有参考价值: 第一种办法:用数组倒着存前半段的链表的值,然后和后半段链表的值进行比较。这种解法运行的时间最久可能是因为数组倒 阅读全文

posted @ 2017-12-23 11:33 Michael2397 阅读(176) 评论(0) 推荐(0) 编辑

导航