Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le... Read More
posted @ 2014-08-04 16:21
Xylophone
Views(230)
Comments(0)
Diggs(0)
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and su... Read More
posted @ 2014-08-04 15:45
Xylophone
Views(128)
Comments(0)
Diggs(0)
Given a binary tree, flatten it to a linked list in-place.For example, Given 1 / \ 2 5 / \ \ 3 4 6The flattened ... Read More
posted @ 2014-08-04 15:04
Xylophone
Views(155)
Comments(0)
Diggs(0)
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th... Read More
posted @ 2014-08-04 11:38
Xylophone
Views(212)
Comments(0)
Diggs(0)
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil... Read More
posted @ 2014-08-04 10:29
Xylophone
Views(128)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号