码迷,mamicode.com
首页 >  
搜索关键字:__next__    ( 15001个结果
Tablet:Next Generation Sequence Assembly Visualization
Tablet is a lightweight, high-performance graphical viewer for next-generation sequence assemblies and alignmentsDownload Tablet : Information & Compu...
分类:其他好文   时间:2014-08-11 11:33:12    阅读次数:284
HDOJ 3342 Legal or Not 【拓扑排序】
题意:判断是否成环。 策略:如题。 这道题就是简单的拓扑排序题,但是要注意一点要去重复的数据。我用了两种结构体:链式前向星和邻接矩阵。 代码1:(用链式前向星)(不用增加去重) #include #include #include #define INF 0x3f3f3f3f #define MAXN 105 struct EdgeNode{ int to; int next; }ed...
分类:其他好文   时间:2014-08-11 10:08:52    阅读次数:244
Remember the Word,LA3942(Trie树+DP)
Trie树基础题,记录下代码。 #include #include #define MaxNode 4005*100 #define NodeSize 26 #define MOD 20071027 char givenword[300005]; int ans[300005]; int next[MaxNode][NodeSize]; class Trie{ public: ...
分类:其他好文   时间:2014-08-10 15:49:40    阅读次数:273
node.js调试
原生调试node debug app.js步骤node debug app.js表3-3 Node.js 调试命令命 令 功 能run 执行脚本,在第一行暂停restart 重新执行脚本cont, c 继续执行,直到遇到下一个断点next, n 单步执行step, s 单步执行并进入函数...
分类:Web程序   时间:2014-08-10 15:36:50    阅读次数:208
leetcode 刷题之路 63 Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). zigzag层序遍历树 For example: Given binary...
分类:其他好文   时间:2014-08-09 23:19:59    阅读次数:363
IT公司100题-13-求链表中倒数第k个结点
问题描述:输入一个单向链表,输出该链表中倒数第k个结点。链表倒数第0个节点为NULL。struct list_node { int data; list_node* next;};分析:方法1:首先计算出链表中节点的个数n,然后倒数第k个节点,为正数n-k+1个节点。需要遍历链表2次。方...
分类:其他好文   时间:2014-08-09 21:24:29    阅读次数:254
P164
#include #include #define N 8 typedef struct list { int data; struct list *next; }SLIST; SLIST *creatlist(int *); void outlist(SLIST *); int fun(SLIST *h) { SLIST *p;int s=0; p=h->next; while(p) ...
分类:其他好文   时间:2014-08-09 13:32:57    阅读次数:297
【ThinkingInC++】4、统计txt文本中单词的个数
其中要使用的txt文本!  header defines classes for file IO, including ifstream, whose constructor takes a file name an argument. The expression f >> word extracts the next non-whitespace token from the file an...
分类:编程语言   时间:2014-08-09 11:48:27    阅读次数:365
P163~
#include #include struct node { int data; struct node *next; }; typedef struct node MODETYPE; main() { MODETYPE s1,s2,s3,*begin,*p; s1.data=100; s2.data=200; s3.data=300; begin=&s1; s1.next=...
分类:其他好文   时间:2014-08-09 11:43:57    阅读次数:223
字典树模板题 POJ 2503
1 #include 2 #include 3 4 char en[11],fr[11]; 5 int st; 6 struct Tire{ 7 int next[26]; 8 char eng[11]; 9 }node[200005];10 void insert(char...
分类:其他好文   时间:2014-08-09 02:27:38    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!