假设 head 不为空,下面是实现单向循环链表在头节点后插入新节点的代码,横线处应填入( )。
class Node:
def __init__(self, val):
self.val = val
self.next = None
def insert_after_head(head, x):
new_node = Node(x)
____________________
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析