void PrintTailToHead(PLinkList pList)
{
if(pList)
{
PrintTailToHead(pList->next);
printf("%d->", pList->data);
}
}
王能691811457 博主文章分类:数据结构 ©著作权
void PrintTailToHead(PLinkList pList)
{
if(pList)
{
PrintTailToHead(pList->next);
printf("%d->", pList->data);
}
}
上一篇:删除一个无头单链表的非尾节点
下一篇:合并两个有序链表,合并后依然有序
尾插法建立单链表
单链表逆置
单链表之逆序打印单链表
题目描述: 输入一个链表的头结点,从尾到头反过来打印每个结点的值。题目思路:改变链表结构的话,先反转链表,然
剑指 Offer 06. 从尾到头打印链表难度简单42输入一个链表的头节点,从尾到头反ersePrin
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M