yang-xiaofeng1101 / yang-xiaofeng1101.github.io

杨晓峰的个人博客
1 stars 0 forks source link

翻转链表 | yangxiaofeng的博客 #12

Open yang-xiaofeng1101 opened 2 years ago

yang-xiaofeng1101 commented 2 years ago

https://xiao_feng_yang993.gitee.io/2020/06/18/%E7%BF%BB%E8%BD%AC%E9%93%BE%E8%A1%A8/

翻转链表中第m个节点到第n个节点的部分样例例1:输入: 1->2->3->4->5->NULL, m = 2 and n = 4,输出: 1->4->3->2->5->NULL. 例2:输入: 1->2->3->4->NULL, m = 2 and n = 3,输出: 1->3->2->4-&gt