Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in the...
分类:
其他好文 时间:
2015-09-22 23:14:20
阅读次数:
184
二叉树前序遍历:/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
分类:
其他好文 时间:
2015-09-22 21:44:16
阅读次数:
173
/*Binary Tree TraversalsTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4644 Accepted Submi...
分类:
其他好文 时间:
2015-09-22 18:30:13
阅读次数:
231
Problem Description:Given a binary search tree and a node in it, find the in-order successor of that node in the BST.Note: If the given node has no in...
分类:
其他好文 时间:
2015-09-22 18:28:52
阅读次数:
171
Inorder Successor in BSTGiven a binary search tree and a node in it, find the in-order successor of that node in the BST.Note: If the given node has n...
分类:
其他好文 时间:
2015-09-22 16:04:13
阅读次数:
144
一条查询让你明白 select?‘ABC‘?=?‘abc‘?as?ignoreCase,?binary?‘ABC‘?=?‘abc‘?as?notIgnoreCase; 高(装)级(逼)一下 select?if((‘ABC‘?=?‘abc‘)?=?1,?‘equal‘,?‘not?equal‘)?as?ignoreC...
分类:
数据库 时间:
2015-09-22 14:52:19
阅读次数:
156
LeetCode -- Binary Tree Level Order Traversal...
分类:
其他好文 时间:
2015-09-22 10:24:15
阅读次数:
153
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".解题思路:直接思路,不需要拐弯。按位加,用flag 记住是否有进位,有是1,没有是0, 用St...
分类:
其他好文 时间:
2015-09-22 06:41:00
阅读次数:
193
一直在看Data Structure and Algorithm Analysis 的原版,英文水平有限看的比较慢。代码功力就更不用说了,所以代码打的还没有看书快……已经在看优先队列了,AVL树还没有打完也是棒棒哒。这会儿就先从二叉树更新开始吧。二叉树的结构什么的基本都知道,二叉搜索树就是比就简单的...
分类:
其他好文 时间:
2015-09-22 01:18:17
阅读次数:
231
今天遇到了一个问题:android.view.InflateException: Binary XML file line #16: Error inflating class com.example.ui.FocusedView。FocusedView是继承了Textview。出现了这个错误,在C...
分类:
其他好文 时间:
2015-09-22 01:17:42
阅读次数:
119