![](https://cos-cdn.shuashuati.com/pipixue-web/2020-1231-2005-12/ti_inject-812ce.png)
已知L是无表头结点的,是从下列提供的答案中选择合适的语句序列,分别实现: (1)表头插入s结点的语句序列是_______________________________ (2) 表尾插入 s结点的语句序列是_______________________________1. p->next=s; 2. p=L; 3. L=s; 4. p->next=s->next; 5. s->next=p->next; 6. s->next=L; 7. s->next=null; 8. while(p->next!= Q)? p=p-next; 9. while(p->next) p=p->next;