//判断循环双链表是否对称 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 return 0; return 1; }
25.判断带头结点的循环双链表是否对称
原文:https://www.cnblogs.com/upupup-999/p/15013024.html