第32048题 单选题
在Python实现的非循环单链表中,已知某节点p的引用,要在p的后继位置插入新节点s,以下操作顺序正确的是?

已知单链表节点类定义如下:

class ListNode:
    def __init__(self, val=0, next=None):
        self.val = val
        self.next = next
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析