bst :binary search tree(二叉搜索树)对于树中的每个节点n,左子树中的所有节点的关键字都小于节点n的关键字,右子树中所有节点的关键字都大于节点n的关键字struct node{ int key; struct node *left; //左节点 s...
分类:
其他好文 时间:
2014-06-28 17:06:24
阅读次数:
186
莫队算法?感觉没什么优越性啊?难道就是因为在排序的时候cmp函数的不同?这样做为什么减少时限啊?我带着疑惑敲了代码,却一直有bug……代码: 1 type node=record 2 l,r,id,x,y:int64; 3 end; 4 var a,ans:array[1..55...
分类:
其他好文 时间:
2014-06-28 16:50:06
阅读次数:
248
1 package itacst.dao; 2 3 import org.w3c.dom.Document; 4 import org.w3c.dom.Element; 5 import org.w3c.dom.Node; 6 import org.w3c.dom.NodeList;...
分类:
其他好文 时间:
2014-06-28 14:01:36
阅读次数:
271
详细说明 配置 Sublime Text 开发node.js(windows)包括sub2和sub3的区别
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?一次...
分类:
其他好文 时间:
2014-06-28 13:38:14
阅读次数:
171
在《深入浅出nodejs》有这样一段(有部分增减):1、nodejs引入模块分四个步骤路径分析文件定位编译执行加入内存2、核心模块部分在node源代码的编译过程中就编译成了二级制文件,在node启动时就直接加载如内存,所以这部分模块引入时,前三步省略,直接加入。3、nodejs的模块加载和浏览器js...
分类:
Web程序 时间:
2014-06-28 11:22:59
阅读次数:
218
oracle RAC--归档日志的开启方法2011-10-07 15:53:04分类:Oracleoracle RAC--归档日志的开启方法==================================10g R1 要修改cluster_database参数 ,10G R2和以后的版本就不需要...
分类:
数据库 时间:
2014-06-23 07:30:39
阅读次数:
354
题目链接:http://61.187.179.132/JudgeOnline/problem.php?id=1050题意:给出一个带权图。求一条s到t的路径使得这条路径上最大最小边的比值最小?思路:将边排序。枚举最小边,然后将边一个一个插到并查集里,s和t联通时计算更新答案。struct node{...
分类:
其他好文 时间:
2014-06-23 06:13:19
阅读次数:
221
1.Ref,AutorealsePool,PoolManager是紧密相关的
2.Ref的retain、new 应该与 release或者autoRealse成对出现。
3.Node的使用方式。...
分类:
其他好文 时间:
2014-06-22 22:54:51
阅读次数:
293
Server management the Erlang node and the Erlang application Starting nodes multiple Erlang applications can run inside the same node an application o...
分类:
其他好文 时间:
2014-06-21 16:36:43
阅读次数:
387