码迷,mamicode.com
首页 >  
搜索关键字:binary index tree    ( 56466个结果
LeetCode之Unique Binary Search Trees
Unique Binary Search Trees, Given n, how many structurally unique BST's (binary search trees) that store values 1...n?...
分类:其他好文   时间:2014-05-15 02:32:11    阅读次数:245
document的元数据(document metadata)
一个document并不是简单的包含他的普通数据。同时也包括元数据——关于这个document的信息。有三个元数据是必须的,如下:_index document存储的地方_type document表述的类(class)_id document的唯一标识符_indexindex就像是关系型数据库的d...
分类:其他好文   时间:2014-05-15 01:51:08    阅读次数:270
gradle编译自定义注解(annotation)
最近把一个用eclipse构建的项目,加上了Gradle脚本,用它来编译。虽然最后编译是显示BUILD SUCCESSFUL,但是在编译过程中,却打印出一大堆栈信息,似乎是在编译我自定义的注解时出现的异常。 打印的栈信息前面部分如下: :assemble :lint Failed converting ECJ parse tree to Lombok for file E:\code\git\...
分类:其他好文   时间:2014-05-15 00:00:10    阅读次数:516
[leetcode]_Maximum Depth of Binary Tree
第三道树的题目,我还是不会,我擦,怎么递归算法还是不能很好理解。看来还得好好研究下递归算法。题目:求一棵树的最大深度。思路:递归地求取左子树最大深度 和 右子树最大深度,返回较大值即为 整棵树的 最大深度。代码:public int maxDepth(TreeNode root) { ...
分类:其他好文   时间:2014-05-14 23:07:14    阅读次数:373
Pat(Advanced Level)Practice--1043(Is It a Binary Search Tree)
Pat1043代码题目描述:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contain...
分类:其他好文   时间:2014-05-14 22:03:25    阅读次数:487
Zoj 3201 Tree of Tree
Zoj 3201 Tree of Tree...
分类:其他好文   时间:2014-05-14 21:44:57    阅读次数:250
LeetCode--Binary Tree Preorder Traversal
Binary Tree Preorder Traversal  Total Accepted: 18022 Total Submissions: 51784My Submissions Given a binary tree, return the preorder traversal of its nodes' values. For example: Given b...
分类:其他好文   时间:2014-05-14 20:43:22    阅读次数:242
HDU 4786 Fibonacci Tree
点击打开链接 Fibonacci Tree Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 975    Accepted Submission(s): 289 Problem Description  ...
分类:其他好文   时间:2014-05-14 20:18:47    阅读次数:366
Html5新特性 <canvas>画板画直线
下面例子为用canvas标签画多条直线 index_three 您的浏览器不支持canvas标签。 //获取Canvas对象(画布) var canvas = document.getElementById("myCanvas"); //简单地检测当前浏览器是否支持Canvas对象,以免在一些不支持html5的浏览器中提示语法错误 if(canvas.get...
分类:Web程序   时间:2014-05-14 19:32:40    阅读次数:329
MySQL索引篇
innodb索引概念总结记录下innodb的索引概念,以备查看innodb索引分类:聚簇索引(clustered index) 1) 有主键时,根据主键创建聚簇索引 2) 没有主键时,会用一个唯一且不为空的索引列做为主键,成为此表的聚簇索引 3) 如果以上两个都不满足那innodb自己创建一个...
分类:数据库   时间:2014-05-14 18:14:41    阅读次数:402
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!