摘要: leetcode -Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 ... 阅读全文
posted @ 2015-07-22 17:04 cnblogshnj 阅读(97) 评论(0) 推荐(0) 编辑
摘要: leetcode -Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?/** * Definitio... 阅读全文
posted @ 2015-07-22 10:31 cnblogshnj 阅读(100) 评论(0) 推荐(0) 编辑
摘要: leetcode -Delete Node in a Linked ListWrite a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supp... 阅读全文
posted @ 2015-07-22 09:57 cnblogshnj 阅读(141) 评论(0) 推荐(0) 编辑