码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
测试赛D - The War(有控制范围的贪心)
#include #include #include using namespace std; struct node{ int x , y ; } p[2600]; int q[1200] ; bool cmp(node a,node b) { return a.y < b.y || ( a.y == b.y && a.x < b.x ) ; } int main() {...
分类:其他好文   时间:2014-07-30 17:44:44    阅读次数:219
单链表操作实例程序
#include #include using namespace std; typedef struct node { int val; node *next; }node; node * create_list(); void traverse_list(node *pHead); int get_len_list(node *pHead); bool delete_list(no...
分类:其他好文   时间:2014-07-30 17:43:54    阅读次数:237
从尾到头打印链表
使用数据结构stack或者递归 1 使用stack #include #include using namespace std; typedef struct listNode{ int key; struct listNode *pNext; } * pNode,Node; void createNode(pNode &pHead){ bool isFirst=true;...
分类:其他好文   时间:2014-07-30 17:30:34    阅读次数:189
Linked List Cycle II
题目描述:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra spac...
分类:其他好文   时间:2014-07-30 17:18:44    阅读次数:204
poj 1088 滑雪
记忆化搜索。。 对每个点能走的最远进行记录,如果走过,直接返回上一层。。 最后遍历找出最大值。。 #include #include #include #include using namespace std; struct node{ int q,w; }s[104][105]; int a,b; int yy[105][105]; int map[4][2]={1,0,-1,0,0,...
分类:其他好文   时间:2014-07-30 12:23:03    阅读次数:179
复杂链表的复制
问题描述: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. 解题思路: 将1->2->3->4->NUL...
分类:其他好文   时间:2014-07-30 10:07:54    阅读次数:259
Cache coherence protocol
A cache coherence protocol facilitates a distributed cache coherency conflict resolution in a multi-node system to resolve conflicts at a home node. F...
分类:其他好文   时间:2014-07-30 03:14:42    阅读次数:447
深入理解nodejs 中 exports与module.exports
在Javascript 中,有2种作用域,分为 全局作用域 ,和函数作用域, 在 浏览器端 , 全局作用域 就是 window对象的属性, 函数作用域 就是 ,某个 函数 生成的对象的属性; var name = 'html5'; function Obj(){ this.name = 'CSS3'...
分类:Web程序   时间:2014-07-30 01:02:22    阅读次数:286
HDU 1253 胜利大逃亡(BFS)
#include #include #include #include #include using namespace std; struct node{ int x,y,z,step; }; int ma[51][51][51]; int A,B,C,T; int mv[6][3] = {{1,0,0},{0,1,0},{0,0,1},{-1,0,0},{0,-1,0},{0...
分类:其他好文   时间:2014-07-29 21:57:42    阅读次数:394
delphi treeview 鼠标移动显示hint信息
procedure TForm1.TreeView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var Node: TTreeNode;begin with TreeView1 do begin Node := GetN...
分类:移动开发   时间:2014-07-29 21:40:42    阅读次数:393
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!