![](https://cos-cdn.shuashuati.com/pipixue-wap/2020-1230-1107-56/ti_inject-812ce.png)
算法题: 已知结构体定义为: typedef struct node { int data; struct node *next; }node, *LinkList; 下列算法的功能为:在一个带头L中,第i个结点前插入一个结点。请将空余处填上,使算法完成功能。 void insert (node L,int i,elemtype x) {node *p=L; int k=0; node s; while (p&& _______空1_______) {_______空2_______;k++;} if (!p ||j>i-1) {printf(“not found node”); return;} s=(LinkList) malloc (sizeof(node)); ___空3______; ___空4______; ___空5______; }