摘要: def delete_k_node(self, head, index): """ 删除链表倒数第k个节点 :param head: :param index: :return: """ # 虚拟头结点 dummy = Node(-1) dummy.next = head # p2指向dummy,p 阅读全文
posted @ 2023-01-05 19:42 公众号python学习开发 阅读(84) 评论(0) 推荐(0) 编辑