摘要:
题目:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which ... 阅读全文
posted @ 2015-08-28 11:46
Hygeia
阅读(129)
评论(0)
推荐(0)
摘要:
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin 阅读全文
posted @ 2015-08-28 10:32
Hygeia
阅读(131)
评论(0)
推荐(0)
摘要:
题目:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?... 阅读全文
posted @ 2015-08-28 09:23
Hygeia
阅读(151)
评论(0)
推荐(0)
摘要:
题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?AnalysisIf we have 2 pointers - fast an... 阅读全文
posted @ 2015-08-28 08:44
Hygeia
阅读(136)
评论(0)
推荐(0)
摘要:
题目:Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e... 阅读全文
posted @ 2015-08-28 07:46
Hygeia
阅读(203)
评论(0)
推荐(0)

浙公网安备 33010602011771号