码迷,mamicode.com
首页 >  
搜索关键字:Node    ( 27491个结果
20140429
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node *head){ if(head->next==NULL||head->next->next==NULL) return head->next; node...
分类:其他好文   时间:2014-07-22 23:11:15    阅读次数:374
[ACM] Color the ball [线段树水题][数组开大]
DescriptionN个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a 2 #include 3 #define maxn 300000 4 class Node{ 5 public: 6 int l,r; 7 __int64 add;//附加...
分类:其他好文   时间:2014-07-22 23:10:14    阅读次数:295
ElasticSearch 之 Client
在使用ElasticSearch的时候,我们需要与Cluster通信,Java版本的API提供了几种方式来构造Client,进而通过Client操作Cluster。1)使用Node与clustor通信原理:通过在程序中创建一个嵌入es节点(Node),使之成为ElasticSearch集群的一部分,...
分类:其他好文   时间:2014-07-22 23:08:14    阅读次数:315
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-07-22 23:07:13    阅读次数:379
hdu 1104 数论+bfs
题意:给n,m,k;输出n经过+-*%后(n%k+k)%k==((n+1)%k)%k 输出最小路径与运算副zsd:% 只是求余数 有正负 mod 是求模 无正负、yhd:对m*k求余对 对k求余不对#include#includeusing namespace std;struct Node{ .....
分类:其他好文   时间:2014-07-22 23:06:14    阅读次数:369
(译)Node.js的模块-exports和module.exports
>原文标题:Node.js Module – exports vs module.exports 原文链接:[http://www.hacksparrow.com/node-js-exports-vs-module-exports.html](http://www.hacksparrow.co...
分类:Web程序   时间:2014-05-01 15:25:33    阅读次数:452
less初识
一种动态样式语言.LESS 将 CSS 赋予了动态语言的特性,如变量,继承,运算,函数. LESS 既可以在客户端上运行 (支持IE 6+, Webkit, Firefox),也可以借助Node.js或者Rhino在服务端运行。变量简单示例: // LESS@color: #4D926F;#hea....
分类:其他好文   时间:2014-05-01 14:25:11    阅读次数:350
node.js 创建第一个web应用
安装node.js从http://nodejs.org/ 下载安装程序进行安装。安装后从开始菜单启动:Node.js command prompt安装web开发框架Express如果需要代理访问网络,先用下面的命令设置代理:> npm config set proxy=http://192.168....
分类:Web程序   时间:2014-05-01 01:48:43    阅读次数:375
poj 2431 Expedition 贪心+最大堆
当油量不够时从走过的油站中选最大加油量的 #include #include #include #include using namespace std; #define MAX_N 10005 struct node{ int dist,fuel; }t[MAX_N]; bool cmp(const node &a,const node &b) { return a.dist<b.dis...
分类:其他好文   时间:2014-04-28 10:44:43    阅读次数:335
Linux 内核 hlist 详解
在Linux内核中,hlist(哈希链表)使用非常广泛。本文将对其数据结构和核心函数进行分析。 和hlist相关的数据结构有两个:hlist_head 和 hlist_node //hash桶的头结点 struct hlist_head { struct hlist_node *first;//指向每一个hash桶的第一个结点的指针 }; //hash桶的普通结点 struct hl...
分类:系统相关   时间:2014-04-27 21:24:06    阅读次数:579
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!