摘要:
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 阅读全文
摘要:
Reverse a singly linked list. Solution 1 (recursion) Solution 2 Iteration 阅读全文