Open utterances-bot opened 1 year ago
题目描述
https://febook.hzfe.org/awesome-interview/book2/algorithm-reverse-linked-list
迭代版可以缩减下
while (cur) { [cur.next, pre, cur] = [pre, cur, cur.next]; } return pre;
反转链表 | HZFE - 剑指前端 Offer
题目描述
https://febook.hzfe.org/awesome-interview/book2/algorithm-reverse-linked-list