毛佳茗de代码

Mao's code

Finding a Loop in a Singly Linked List

MotivationA singly linked list is a common data structure familiar to all computer scientists. A singly linked list is made of nodes where each node ...

2006-11-16 14:56:00

阅读数:1491

评论数:0

微软面试技术题

1、反转一个链表。循环算法。 List reverse(List l) { if(!l) return l; list cur = l.next; list pre = l; list tmp; pre.next = null; while ( cur ) { tmp = cur; cur = c...

2006-11-16 14:44:00

阅读数:1431

评论数:0

[数据结构]KMP算法实现

#includestdio.h>#includestdlib.h>#define MAX 255void get_next(const char* T,int* next) // 算法4.7{    int i=0,j=-1;    next[0]=-1;    while (istr...

2006-11-15 12:59:00

阅读数:2146

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭