码迷,mamicode.com
首页 >  
搜索关键字:add binary    ( 48151个结果
BST(Binary Search Tree)
Definition: see wikihttp://en.wikipedia.org/wiki/Binary_search_tree 1 /* 2 This look up is a fast operation because you eliminate the half 3 t...
分类:其他好文   时间:2014-07-22 23:06:34    阅读次数:330
Linux tar command usage
Linux tar command usageLinux tar command usageTable of Contents1. Create an archive:2. Create a gzipped archive:3. List the files in an archive4. Add ...
分类:系统相关   时间:2014-05-01 16:16:01    阅读次数:586
Same Tree
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...
分类:其他好文   时间:2014-05-01 16:06:46    阅读次数:427
list集合绑定在datagridview上时如何实现排序
List lst = new List(); lst.Add(new Person("A", "1")); lst.Add(new Person("C", "2")); lst.Add(new Person("B", "3")); ...
分类:Windows程序   时间:2014-05-01 16:03:32    阅读次数:582
Selenium自动化测试问题
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:*** LOG add...
分类:其他好文   时间:2014-05-01 15:00:46    阅读次数:292
[leetcode] Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:其他好文   时间:2014-05-01 14:38:39    阅读次数:454
js实现hash
由于项目中用到了hash,自己实现了一个。Hash = function () { } Hash.prototype = { constructor: Hash, add: function (k, v) { if (!this.hasO...
分类:Web程序   时间:2014-05-01 13:44:25    阅读次数:444
RUBY,玩玩~~~
我觉得吧,这东瀛的红宝石,也得玩玩,毕竟,RUBY ON RAILS,PUPPET等也是一股力量。作为混IT圈的,知道总没坏处。就是感觉和C,C++,JAVA,C#,PHP,甚至PYTHON的感觉都不一样。。。。就是怪怪的,可能还不习惯其中的逻辑判断吧。$arr=[]$arr[0]=2def add...
分类:其他好文   时间:2014-05-01 13:19:26    阅读次数:401
集合框架
集合框架 集合:容器 储存对象的对象 Object[]接口特点接口中的常用方法遍历实现类Collection 接口 特点: 元素是Object常用方法:add(Object o):将o添加到集合中addAll(Collection c):将集合c中所有的元素添加到集合中clear() 清...
分类:其他好文   时间:2014-05-01 12:31:34    阅读次数:414
LeetCode OJ - Binary Tree Maximum Path
这道题需要注意的地方有以下一些:1. 求从子树中的某节点到当前节点的最大路径不能采用递归方法,因为这个部分会被反复的调用,如果用递归,会使得之前已经计算过的节点被重复计算,使得时间复杂度特别高;2. 树中有节点的值是负数的。下面是AC代码。(我发现AC并不代表代码真的完全正确!!) 1 /** 2 ...
分类:其他好文   时间:2014-05-01 12:10:52    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!