https://oj.leetcode.com/problems/binary-tree-inorder-traversal/http://blog.csdn.net/linhuanmars/article/details/20187257/**
*Definitionforbinarytree
*publicclassTreeNode{
*intval;
*TreeNodeleft;
*TreeNoderight;
*TreeNode(intx){val=x;}
*}
*/
publicclassSolut..
分类:
其他好文 时间:
2015-01-05 18:57:54
阅读次数:
133
https://oj.leetcode.com/problems/unique-binary-search-trees/http://blog.csdn.net/linhuanmars/article/details/24761459publicclassSolution{
publicintnumTrees(intn)
{
//See
//http://blog.csdn.net/linhuanmars/article/details/24761459
//r0=0;
//r1=1;
//r2=2;
//..
分类:
其他好文 时间:
2015-01-05 18:57:26
阅读次数:
201
https://oj.leetcode.com/problems/validate-binary-search-tree/http://blog.csdn.net/linhuanmars/article/details/23810735/**
*Definitionforbinarytree
*publicclassTreeNode{
*intval;
*TreeNodeleft;
*TreeNoderight;
*TreeNode(intx){val=x;}
*}
*/
publicclassSolutio..
分类:
其他好文 时间:
2015-01-05 18:56:26
阅读次数:
137
Author:Skate
Time:2015/01/05
MySQL schema和binary log磁盘空间趋势分析
[root@skatedb55 dist]# ./mysqlsize --help
usage: Database diskspace usage v0.1 ,(C) Copyright Skate 2014
[-h] [--load LOAD]...
分类:
数据库 时间:
2015-01-05 18:50:17
阅读次数:
237
大数据对象处理主要有CLOB(character large object) 和BLOB(binary large object) 两种类型的字段。在CLOB中可以存储大字符对象,比如长篇小说;在BLOB中可以存放二进制大数据对象,如图片、电影、音乐。1、处理CLOB数据public class J...
分类:
数据库 时间:
2015-01-05 18:18:32
阅读次数:
166
搞定SourceInsight的半个汉字的问题
“SourceInsight是一个面向项目开发的程序编辑器和代码浏览器,它拥有内置的对C/C++, C#和Java等程序的分析。SourceInsight能分析你的源代码并在你工作的同时动态维护它自己的符号数据库,并自动为你显示有用的上下文信息。SourceInsight不仅仅是一个强大的程序编辑器,它还能显示reference
trees...
分类:
其他好文 时间:
2015-01-05 11:13:00
阅读次数:
230
每日一练,Givenabinarytree,returnthelevelordertraversalofitsnodes‘values.(ie,fromlefttoright,levelbylevel).Forexample:Givenbinarytree{3,9,20,#,#,15,7},3
/920
/157returnitslevelordertraversalas:[
[3],
[9,20],
[15,7]
]代码如下:classSolution{
public:
in..
分类:
其他好文 时间:
2015-01-05 07:06:51
阅读次数:
165
ecently I had an interesting surprise with concurrent inserts into a MyISAM table. The inserts were not happening concurrently with SELECT statements;...
分类:
其他好文 时间:
2015-01-05 01:46:52
阅读次数:
156
Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi...
分类:
其他好文 时间:
2015-01-04 20:56:53
阅读次数:
156
Given a binary tree
struct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its next right node....
分类:
其他好文 时间:
2015-01-04 13:37:21
阅读次数:
94