码迷,mamicode.com
首页 >  
搜索关键字:nth node    ( 28024个结果
[leetcode]Remove Nth Node From End of List
Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2.....
分类:其他好文   时间:2014-07-22 22:53:35    阅读次数:220
Codeforces Round #257 (Div. 2/A)/Codeforces450A_Jzzhu and Children
解题报告 没什么好说的,大于m的往后面放,,,re了一次,,, #include #include #include #include using namespace std; struct node { int x,cd; }num[1000000]; int main() { int n,m,c; cin>>n>>m; int i; for...
分类:其他好文   时间:2014-07-22 22:49:16    阅读次数:247
zoj 2876 Phone List
#include #include #include #define ZERO 0 const int FIRST_CHAR = '0'; char num[11111][20] ; typedef struct node { struct node *child[20]; /* 存储下一个字符 */ int n; /* 记录当前单词出现的次数 */ }node, *No...
分类:其他好文   时间:2014-07-20 11:32:38    阅读次数:215
链表(四)——带表头的单向链表
1.带表头的单向链表 (1)不带表头的单向链表在实现插入和删除时必须区分头结点和其他节点的处理。 (2)使用带表头的单向链表的好处:不用考虑头结点的单独处理。 表头节点:数据域没有值,指针域指向单向链表中数据域含值的第一个结点。 2.代表头的单向链表的基本操作 #include #include #define NULL 0 typedef struct node { int ...
分类:其他好文   时间:2014-07-20 10:31:16    阅读次数:250
node.js小结 2
下载node安装npm什么的就不说了入门总结http://www.cnblogs.com/Darren_code/archive/2011/10/31/nodejs.html进入node_HOME目录test.js/*var hello = require('./hello.js');console...
分类:Web程序   时间:2014-07-20 08:04:01    阅读次数:240
hdu 1251 统计
他妹的,敲完了,电脑死机了,全部消失了,又从新打了一遍,。。。这是什么节奏#include #include #include #define ZERO 0 #define ALPH_LEN 26 /* 26个字母 */ const char FIRST_CHAR = 'a'; typedef struct node { struct node *child[ALPH_LEN]; ...
分类:其他好文   时间:2014-07-20 00:31:16    阅读次数:286
深入浅出NodeJS——异步I/O
NodeJS的异步I/O原理,涉及底层*nix和windows平台异步I/O实现方式,通常说Node.js是单线程的,但其底层实质是多线程利用多线程来实现异步I/O。...
分类:Web程序   时间:2014-07-19 23:20:12    阅读次数:1078
模板,BFS
#include #include #include using namespace std; struct node { int x,y,step; }; char map[105][105]; int vis[105][105]; int to[4][2]= {1,0,-1,0,0,1,0,-1}; int n,m,sx,sy,ex,ey,ans; int check(in...
分类:其他好文   时间:2014-07-19 23:11:19    阅读次数:330
Fence Repair
有n(n>=1&&n1&&node[i]>n) { node[0]=0; for(i=1;i>node[i]; inheap(node[i]); } __int64 ans=0; for(i=1;i...
分类:其他好文   时间:2014-07-19 23:02:20    阅读次数:190
【leetcode刷题笔记】Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:其他好文   时间:2014-07-19 22:34:50    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!