逆置連結串列

三金的程式碼庫發表於2020-11-01
#include<stdio.h>
#include"linklist.h"
linklist* reserve(linklist* l)
{
	Node* pr = l->first;
	Node* ps = l->first->next;
	while (ps)
	{
		pe->next = ps->next;
		ps->next = l->first;
		l->first = ps;
		ps = pe-next;

	}
}

相關文章