力扣小白刷题之19题删除链表的倒数第N个节点

题目描述 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 思路:双指针(+预先指针) 参考自:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/solution/hua-jie-suan-fa-19-shan-chu-lian-biao-de-dao-shu-d/ 整体思路是让前面的指针先移动 n
相关文章
相关标签/搜索