摘要:
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? Solution 1 (loop through and use 阅读全文
posted @ 2016-11-19 05:08
MiaBlog
阅读(216)
评论(0)
推荐(0)
摘要:
Reverse a singly linked list. Solution 1 (recursion) Solution 2 Iteration 阅读全文
posted @ 2016-11-19 04:01
MiaBlog
阅读(125)
评论(0)
推荐(0)
浙公网安备 33010602011771号