#include "stdlib.h"#include "time.h"struct link{
int data;
struct link *next;};//不带头节点的链表struct link *CreateLink(int n){
struct link *head=NULL,*p=NULL,*q=NULL;
srand( n*1000);
int temp = rand()%10;
head = (struct link *)malloc(sizeof(struct link));
head->data = temp;
head...