1 | public ListNode removeNthFromEnd(ListNode head, int n) { |
链表删除倒数第N个元素
Author: Sheng Wang
Permalink: https://shengwang.fun/2022/11/28/delinnodelist/
License: Copyright (c) 2019 CC-BY-NC-4.0 LICENSE
1 | public ListNode removeNthFromEnd(ListNode head, int n) { |
Author: Sheng Wang
Permalink: https://shengwang.fun/2022/11/28/delinnodelist/
License: Copyright (c) 2019 CC-BY-NC-4.0 LICENSE