bst :binary search tree(二叉搜索树)对于树中的每个节点n,左子树中的所有节点的关键字都小于节点n的关键字,右子树中所有节点的关键字都大于节点n的关键字struct node{ int key; struct node *left; //左节点 s...
分类:
其他好文 时间:
2014-06-28 17:06:24
阅读次数:
186
1.安装好node.js后在系统环境变量自动会设置好:我安装在D:\Program Files文件夹中也安装好了npm(node packges manager)2.系统会自动配置npm的用户路径但是我们安装的路径是,修改为一下路径3.在你的需要的工作目录中打开git安装coffee包npm ins...
分类:
其他好文 时间:
2014-06-28 17:05:44
阅读次数:
203
莫队算法?感觉没什么优越性啊?难道就是因为在排序的时候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
链表快速排序 大致思想是通过一个指针数组转化为常规数组快速排序,最后再重新梳理链表。 #include #include using namespace std;typedef struct NODE{ int data; NODE* next; NODE(int _data) : data(_da...
分类:
其他好文 时间:
2014-06-21 10:01:47
阅读次数:
210
这是一篇阐述得比较详细的文章,从伺服静态文件,到支持文件夹,缓存,gzip/deflate,range,都是带着讲解完成的,全文转载如下:我们的app.js文件里的结构很明确:var PORT = 8000;var http = require('http');var server = http.c...
分类:
Web程序 时间:
2014-06-20 22:15:43
阅读次数:
298
DOM(Document Object Model),文件对象模型。HTML(HyperText Markup Language),超文本标记语言。HTML的超类:Node->Document;Node->Element->HTMLElement。HTML的元素:HTMLDocument/HTMLB...
分类:
Web程序 时间:
2014-06-20 20:18:24
阅读次数:
318
#include #include #includeusing namespace std;struct Node { double coef; int expn; Node *next;};void CreatPolynomial(Node *&head, int n) ...
分类:
其他好文 时间:
2014-06-20 14:17:26
阅读次数:
285