第32045题 单选题
在Python实现的单链表中,要在指针p指向的节点之后插入新节点s,以下操作步骤正确的是?

假设单链表节点的类定义如下:

class ListNode:
    def __init__(self, data):
        self.data = data
        self.next = None

要求插入操作不丢失原链表的任何节点。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析