码迷,mamicode.com
首页 >  
搜索关键字:binary index tree    ( 56466个结果
[leetcode]Binary Tree Level Order Traversal @ Python
原题地址:http://oj.leetcode.com/problems/binary-tree-level-order-traversal/题意:二叉树的层序遍历的实现。解题思路:二叉树的层序遍历可以用bfs或者dfs来实现。这里使用的dfs实现,代码比较简洁。实际上,二叉树的先序遍历就是dfs实...
分类:编程语言   时间:2014-05-14 03:25:59    阅读次数:428
elasticsearch 相关
1、对elsasticsearch index的解释,What exactly is an index in Elasticsearch ?basic definitionAn index isdefinedas:An index is like a ‘database’ in a relation...
分类:其他好文   时间:2014-05-14 03:21:49    阅读次数:287
[leetcode]Binary Tree Level Order Traversal II @ Python
原题地址:http://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/题意:Given a binary tree, return thebottom-up level ordertraversal of its node...
分类:编程语言   时间:2014-05-12 22:03:27    阅读次数:581
[leetcode]Binary Tree Zigzag Level Order Traversal @ Python
原题地址:http://oj.leetcode.com/problems/binary-tree-zigzag-level-order-traversal/题意:Given a binary tree, return thezigzag level ordertraversal of its nod...
分类:编程语言   时间:2014-05-12 22:02:26    阅读次数:480
[leetcode]Minimum Depth of Binary Tree @ Python
原题地址:http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/题意:Given a binary tree, find its minimum depth.The minimum depth is the number of no...
分类:编程语言   时间:2014-05-12 21:55:15    阅读次数:348
Joomla的Url中去除index.php
最近在研究Joomla系统(一个著名的CMS系统),安装之后发现页面的URL中始终有一个index.php存在,感觉非常碍眼,决心将其除之而后快,废话少说,下面以2.5版本为例奉上去除步骤。1.登录管理后台,在“Site”->“GlobalConfiguration”->“Site”中的“SEOSettings”中全..
分类:Web程序   时间:2014-05-12 03:31:36    阅读次数:414
Django ajax Post
在web项目中,ajax运用非常频繁,今天就给大家展示下DjangoajaxPost的使用方法templates模板---------------------index.html<html> <header></header> <body> <p>name:<inputtype="text"name="nickname"/></p> <inputclass="nam..
分类:其他好文   时间:2014-05-12 03:23:21    阅读次数:359
SPOJ 4487. Can you answer these queries VI splay
题目链接:点击打开链接 题意比较明显,不赘述。 删除时可以把i-1转到根,把i+1转到根下 则i点就在 根右子树 的左子树,且只有i这一个 点 #include #include #include #include using namespace std; #define N 300500 #define inf 10000000 #define L(x) tree[x].ch[0] #d...
分类:其他好文   时间:2014-05-11 21:05:52    阅读次数:365
mongodb文档支持的数据类型
1. 存储类型 mongodb文档类似于json,但不是完全的json。 json只有六种类型:null, bool, 数字,字符串,数组,对象。 但是mongo的文档在json的基础上还扩展了几种类型, 比如,日期类型,整数,浮点数。 mongodb真正存储在磁盘上是使用bson(binary json)。...
分类:数据库   时间:2014-05-11 20:28:51    阅读次数:442
运维的我要学开发--Flask(1)
Flask默认使用的是Jinja2的模板引擎,下面将会介绍下Flask提供给模板的一些方法。#-*-coding:utf-8-*- #导入一些函数 fromflaskimportFlask fromflaskimportrender_template,g #创建一个app app=Flask(__name__) #创建一个装饰器 @app.route("/") @app.route("/index") defindex..
分类:其他好文   时间:2014-05-11 19:25:12    阅读次数:443
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!