2021年7月14日
摘要: #include<stdio.h> #include<stdlib.h> typedef int ElemType; typedef struct LNode{ ElemType data; struct LNode *next; }LNode,*LinkList; bool InitList(Li 阅读全文
posted @ 2021-07-14 21:58 upupup-999 阅读(112) 评论(0) 推荐(0) 编辑
摘要: //判断循环双链表是否对称 int Symmetry(DLinkList L) { DNode *p=L->next,*q=L->prior; while(p!=q&&p->next!=p) if(p->data==q->data) { p=p->next; q=q->prior; } else r 阅读全文
posted @ 2021-07-14 21:21 upupup-999 阅读(403) 评论(0) 推荐(0) 编辑