摘要:
Objective-CEncapsulating Data01. atomic // default02. nonatomic03. strong=retain // default04. weak= unsafe_unretained05. retain06. assign // default07. unsafe_unretained08. copy09. readonly10. readwrite // default1.nonatomic在Objective-C ... 阅读全文
摘要:
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 阅读全文