摘要: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. ( 阅读全文
posted @ 2016-11-08 22:24 wangxiaobao1114 阅读(135) 评论(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 l 阅读全文
posted @ 2016-11-08 22:22 wangxiaobao1114 阅读(165) 评论(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 dept 阅读全文
posted @ 2016-11-08 22:16 wangxiaobao1114 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 作者:阮一峰 原文链接:http://www.ruanyifeng.com/blog/2011/12/inode.html 一、inode是什么? 理解inode,要从文件储存说起。 文件储存在硬盘上,硬盘的最小存储单位叫做"扇区"(Sector)。每个扇区储存512字节(相当于0.5KB)。 操作 阅读全文
posted @ 2016-11-08 13:07 wangxiaobao1114 阅读(244) 评论(0) 推荐(0) 编辑