摘要: Objective-CEncapsulating Data01. atomic // default02. nonatomic03. strong=retain // default04. weak= unsafe_unretained05. retain06. assign // default07. unsafe_unretained08. copy09. readonly10. readwrite // default1.nonatomic在Objective-C ... 阅读全文
posted @ 2013-12-21 19:28 andyqee 阅读(910) 评论(0) 推荐(0) 编辑
摘要: Problem:Minimum Depth of Binary TreeGiven 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 leaf node.Solution one based on recursive algrithm. It looks clear, but not optimal .//Solution one /** * Definition 阅读全文
posted @ 2013-12-21 17:27 andyqee 阅读(145) 评论(0) 推荐(0) 编辑