Linkling Demo(Link list L){List node Q,P;if(L&&L->next){Q=L;L=L->next;P=L;while(P->next)P=P->next;P->next=Q;Q->next=NULL;}return L;}
遍历到链表尾部,然后把尾部设置链表头,变成循环链表了。
把头节点放到最后,第二个节点做头节点。