码迷,mamicode.com
首页 >  
搜索关键字:binary index tree    ( 56466个结果
[LeetCode OJ] Symmetric Tree
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 / \ ...
分类:其他好文   时间:2014-06-18 13:29:31    阅读次数:214
[LeetCode] Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-06-18 12:51:52    阅读次数:205
RPM是RedHat Package Manager(RedHat软件包管理工具)
RPM是RedHat Package Manager(RedHat软件包管理工具)类似Windows里面的“添加/删除程序”rpm 执行安装包二进制包(Binary)以及源代码包(Source)两种。二进制包可以直接安装在计算机中,而源代码包将会由RPM自动编译、安装。源代码包经常以src.rpm作...
分类:其他好文   时间:2014-06-18 12:49:53    阅读次数:238
[LeetCode] 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-06-18 12:32:58    阅读次数:169
[转]JavaScript 的性能优化:加载和执行
原文链接:http://www.ibm.com/developerworks/cn/web/1308_caiys_jsload/index.html?ca=drs-JavaScript 的性能优化:加载和执行蔡 愉晟, 软件工程师, IBM简介:随着 Web2.0 技术的不断推广,越来越多的应用使用...
分类:编程语言   时间:2014-06-17 20:28:01    阅读次数:339
Mysql全文搜索match against的用法
全文检索在 MySQL 中就是一个 FULLTEXT 类型索引。FULLTEXT 索引用于 MyISAM 表,可以在 CREATE TABLE 时或之后使用 ALTER TABLE 或 CREATE INDEX 在 CHAR、 VARCHAR 或 TEXT 列上创建对于大的数据库,将数据装载到一个没...
分类:数据库   时间:2014-06-17 20:11:30    阅读次数:268
[数据结构与算法分析(Mark Allen Weiss)]二叉树的插入与删除 @ Python
二叉树的插入与删除,来自Mark Allen Weiss的《数据结构与算法分析》。# Definition for a binary tree nodeclass TreeNode: def __init__(self, x): self.val = x self...
分类:编程语言   时间:2014-06-17 14:25:01    阅读次数:291
phpcmsV9后台登陆界面去掉验证码
第一步找到文件phpcms\modules\admin\index.php注释掉第33行到第36行$code = isset($_POST['code']) && trim($_POST['code']) ?trim($_POST['code']) : showmessage(L('input_co...
分类:Web程序   时间:2014-06-17 13:45:34    阅读次数:375
机器学习算法的R语言实现(二):决策树
1、介绍 ?决策树(decision tree)是一种有监督的机器学习算法,是一个分类算法。在给定训练集的条件下,生成一个自顶而下的决策树,树的根为起点,树的叶子为样本的分类,从根到叶子的路径就是一个样本进行分类的过程。 ?下图为一个决策树的例子,见http://zh.wikipedia.org/w...
分类:其他好文   时间:2014-06-17 13:17:44    阅读次数:281
leetcode - Binary Tree Preorder Traversal && Binary Tree Inorder Traversal && Binary Tree Postorder Traversal
简单来说,就是二叉树的前序、中序、后序遍历,包括了递归和非递归的方法前序遍历(注释中的为递归版本): 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 struct TreeNode 9 {1...
分类:其他好文   时间:2014-06-17 12:53:42    阅读次数:416
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!