leetcode刷题

1. 反转单链表

迭代法

递归

 

 备注:newhead是保存了新链表的表头

 

posted @ 2021-10-16 21:20  木分之米  阅读(16)  评论(0编辑  收藏  举报