摘要:
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa... 阅读全文
posted @ 2015-04-26 22:18
何氏小萌
阅读(119)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2015-04-26 21:44
何氏小萌
阅读(149)
评论(0)
推荐(0)
摘要:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.两个已经排序的链表... 阅读全文
posted @ 2015-04-26 17:47
何氏小萌
阅读(116)
评论(0)
推荐(0)
摘要:
GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]... 阅读全文
posted @ 2015-04-26 17:22
何氏小萌
阅读(106)
评论(0)
推荐(0)
摘要:
House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint... 阅读全文
posted @ 2015-04-26 16:46
何氏小萌
阅读(169)
评论(0)
推荐(0)
摘要:
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth... 阅读全文
posted @ 2015-04-26 16:08
何氏小萌
阅读(160)
评论(0)
推荐(0)
浙公网安备 33010602011771号