自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

毛佳茗de代码

Mao's code

  • 博客(3)
  • 收藏
  • 关注

转载 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 has a pointer to the next node (or null to end th

2006-11-16 14:56:00 1768

转载 微软面试技术题

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 = cur.next; tmp.next = pre pre = tmp; } return tmp; }

2006-11-16 14:44:00 1655

原创 [数据结构]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 (istrlen(T)) {        if(j==-1 || T[i]== T[j]) {            

2006-11-15 12:59:00 2499

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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