摘要:
Reverse a singly linked list. 阅读全文
posted @ 2016-05-18 16:59
米开朗菠萝
阅读(124)
评论(0)
推荐(0)
摘要:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 -> 3 - 阅读全文
posted @ 2016-05-18 16:53
米开朗菠萝
阅读(143)
评论(0)
推荐(0)
摘要:
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? 阅读全文
posted @ 2016-05-18 15:29
米开朗菠萝
阅读(195)
评论(0)
推荐(0)