#include <stdio.h>
#include <stdlib.h>
typedef struct node{
int data;
struct node* next;
}LNode,*LinkList;
//初始化无头循环链表
void InitList(LinkList &L,int n)
{
int i;
L = (LNode *)malloc(sizeof(LinkList));
L = NULL;
struct node *s,*p;
for(i = 1; i <= n; i++...