这几天一直在学习碎片,想自己写一个相关的程序试试,没想到刚写一点就出了问题。
在加载主布局文件activity_main.xml时候,出现错误
06-12 13:11:12.873: E/AndroidRuntime(2022): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gentleni.de...
分类:
其他好文 时间:
2015-06-12 22:20:22
阅读次数:
138
Invert a binary tree. 4
/ 2 7
/ \ / 1 3 6 9to 4
/ 7 2
/ \ / 9 6 3 1Trivia:
This problem was inspired by this original tweet by Max Howell:
Google:...
分类:
其他好文 时间:
2015-06-12 19:31:34
阅读次数:
224
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1/** * Definition for a binary tree node...
分类:
其他好文 时间:
2015-06-12 18:58:42
阅读次数:
91
Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.For example:
Given the below binary tree and sum = 22, 5
/ \...
分类:
其他好文 时间:
2015-06-12 17:17:40
阅读次数:
84
Invert Binary TreeInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem w...
分类:
其他好文 时间:
2015-06-12 16:58:39
阅读次数:
71
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1递归实现def invert_tree(root) root.right...
分类:
其他好文 时间:
2015-06-12 16:57:50
阅读次数:
70
problems: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100".class Solution {public: string...
分类:
其他好文 时间:
2015-06-12 16:40:21
阅读次数:
71
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which represents the number 123.Find the total sum of al...
分类:
其他好文 时间:
2015-06-12 14:55:41
阅读次数:
100
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
/ 2 2
/ \ / 3 4 4 3
But the following is not...
分类:
其他好文 时间:
2015-06-12 10:13:12
阅读次数:
166
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2015-06-12 10:02:42
阅读次数:
90