码迷,mamicode.com
首页 >  
搜索关键字:binary index tree    ( 56466个结果
leetcode - Recover Binary Search Tree
题目:Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A ...
分类:其他好文   时间:2014-06-28 10:26:38    阅读次数:253
Leetcode Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.TreeNode *createSearchTree(ListNode *&hea...
分类:其他好文   时间:2014-06-26 00:12:57    阅读次数:289
phpcms 如何获取文章
请求地址http://127.0.0.1/phpcms/index.php?m=content&c=index&a=show&catid=6&id=8先来判断地址对应的数据表查阅phpcms v9 数据表结构手册http://v9.help.phpcms.cn/html/2010/database_...
分类:Web程序   时间:2014-06-25 22:43:35    阅读次数:457
[leetcode]Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-06-25 22:07:58    阅读次数:330
oj2892(字典树)
一改时间以后WA了,我就知道这题是考字典树,可惜代码怎么也不会敲了,郁闷。#include #include #include typedef struct Node{ int flag;struct Node *next[26];}Node,*Tree;char a[200010][6];int ...
分类:其他好文   时间:2014-06-24 14:31:01    阅读次数:161
下载图片,
-(void)downImage{ AlbumInfo *info = [self.dataArray objectAtIndex:index]; NSString *filePath = [[SandBoxPath pathForCaches]stringByAppendingPathComp.....
分类:其他好文   时间:2014-06-24 10:59:35    阅读次数:231
hust 1016 Black-White Tree
题目描述在图论中,包含n个结点(结点编号为1~n)、n-1条边的无向连通图被称为树。 在树中,任意一对结点间的简单路径总是惟一的。 你拥有一棵白色的树——所有节点都是白色的。接下来,你需要处理c条指令: 修改指令(0 v):改变一个给定结点的颜色(白变黑,黑变白); 查询指令(1 v):询问从结点1...
分类:其他好文   时间:2014-06-22 12:55:54    阅读次数:213
Vim 中文件目录浏览插件——NERD tree
说明 :vim的插件NERDTree用于使得vim窗口分左右窗口显示的用法说明。其中,左侧为目录的树形界面,简称为NERDTree界面,右则为vim界面。 一、配置步骤 下载地址: http://www.vim.org/scripts/script.php?script_id=1658 或者 htt...
分类:其他好文   时间:2014-06-22 11:53:04    阅读次数:258
OpenCV -- 找图片轮廓
img = cv2.imread( 'E:\A.jpeg' ) cv2.imshow( 'img', img ) gray = cv2.cvtColor( img, cv2.COLOR_BGR2GRAY ) ret, binary = cv2.threshold( gray, 127, 255, cv2.THRESH_BINARY ) contours, hierarchy = cv2.fin...
分类:其他好文   时间:2014-06-22 09:49:42    阅读次数:370
Leetcode-Sum Root to Leaf Numbers
题目: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find...
分类:其他好文   时间:2014-06-22 08:30:24    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!