摘要: 题目链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 题目描述: 题解: 方法1:先遍历链表长度,再查找倒数第n个节点位置。时间复杂度O(L) /** * Definition for singly-linke 阅读全文
posted @ 2021-07-15 18:05 张宵 阅读(50) 评论(0) 推荐(0)