issues
search
JTDI
/
leetcode-practice
Record the results of our efforts
6
stars
3
forks
source link
【每日打卡】2020.06.07
#74
Closed
notmaster
closed
4 years ago
notmaster
commented
4 years ago
lyn-ho
commented
4 years ago
206.反转链表
定义两个指针:
pre
和
cur
,
pre
在前,
cur
在后
每次让
pre
的
next
指向
cur
,实现一次局部反转
局部反转后,
pre
和
cur
同时往前移动一位
循环上述过程,直到
pre
到达链尾