码迷,mamicode.com
首页 >  
搜索关键字:tree control    ( 28603个结果)
Sublime settings and control for Python
Preferences.sublime-settings:{ "color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme", "font_size": 16, "font_face": "Monaco", "highlight_...
分类:编程语言   时间:2014-05-26 10:25:11    阅读次数:223
[leetcode]Symmetric Tree @ Python
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:编程语言   时间:2014-05-26 10:18:52    阅读次数:293
Unable to find target command: exec
昨天刚刚配置好的Sublime Text3可以编译C++11了,今早突然就发现了题目所出的问题,看看配置都没问题,网上的回答也不多,但后来受到启发在Data\Installed Packages这里有Package Control.sublime-package这个东东,其实就是我昨天安装插件失败的...
分类:其他好文   时间:2014-05-26 05:44:36    阅读次数:1124
leetcode题目:Sum Root to Leaf Numbers和Longest Consecutive Sequence
题目一: 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. Fin...
分类:其他好文   时间:2014-05-26 04:06:41    阅读次数:248
字典树Trie
字典树Trie Trie,又称字典树,前缀树(prefix tree),是一种树形结构,用于保存大量的字符串。 它的优点是:利用字符串的公共前缀来节约存储空间。查找、插入复杂度为O(n),n为字符串长度。  它有3个基本性质: 1. 根节点不包含字符,除根节点外每一个节点都只包含一个字符。 2. 从根节点到某一节点,路径上经过的字符连接起来,为该节点对应的字符串。...
分类:其他好文   时间:2014-05-24 23:49:57    阅读次数:346
poj 2985 The k-th Largest Group 求第K大数 Treap, Binary Index Tree, Segment Tree
题目链接:点击打开链接 题意:有两种操作,合并集合,查询第K大集合的元素个数。(总操作次数为2*10^5) Treap模板(静态数组) #include #include #include #include #include const int maxNode = 500000 + 100; const int inf = 0x3f3f3f3f; struct Tr...
分类:其他好文   时间:2014-05-24 23:18:09    阅读次数:522
神器Sublime Text 2安装Package Control
神器Sublime Text 2安装Package Control...
分类:其他好文   时间:2014-05-24 22:26:32    阅读次数:243
教你解决Sublime Text中文乱码问题
Sublime Text 2是一个非常不错的源代码及文本编辑器,但是不支持GB2312和GBK编码在很多情况下会非常麻烦。不过Sublime Package Control所以供的插件可以让Sublime Text 2几乎完美地支持CJK编码的文本。 然后使用Ctrl+Shift+P打开命令行模式,在里面输入Install Package即可搜索需要的Package。一般使用“Con...
分类:其他好文   时间:2014-05-24 21:00:06    阅读次数:957
poj 3031 Big Christmas Tree(水spfa)
http://poj.org/problem?id=3013 题意: Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。 正确...
分类:其他好文   时间:2014-05-24 20:27:13    阅读次数:266
50. 树的子结构[subtree structure in tree]
subtree structure in tree
分类:其他好文   时间:2014-05-24 09:23:20    阅读次数:283
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!