摘要: Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ... 阅读全文
posted @ 2014-06-26 23:34 陆草纯 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Word Break IIGiven a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Retur... 阅读全文
posted @ 2014-06-26 22:35 陆草纯 阅读(2282) 评论(0) 推荐(0) 编辑