1,MRC下兼容ARC的工程:TARGETS -> Build Phases -> Link Binary With Libraries ,找到你的ARC文件,在后面添加:-fobjc-arc2,ARC下兼容MRC的工程:TARGETS -> Build Phases -> Link Binary ...
分类:
其他好文 时间:
2015-10-24 17:14:10
阅读次数:
139
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-10-24 12:44:28
阅读次数:
187
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
其他好文 时间:
2015-10-23 21:23:34
阅读次数:
230
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2015-10-23 16:10:00
阅读次数:
153
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:
其他好文 时间:
2015-10-23 16:03:48
阅读次数:
158
本文研究的总结,欢迎转载,但请注明出处:http://blog.csdn.net/pistolove/article/details/41964475Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The...
分类:
其他好文 时间:
2015-10-23 15:57:20
阅读次数:
172
Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["1->2...
分类:
其他好文 时间:
2015-10-23 11:51:33
阅读次数:
159
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
其他好文 时间:
2015-10-23 11:48:17
阅读次数:
180
这一题与Binary Tree Level Order Traversal的解法一样,只需在其基础上加一句 reverse(ret.begin(),ret.end())。好像编程之美上有这题。...
分类:
其他好文 时间:
2015-10-23 01:40:08
阅读次数:
186