带哨兵头尾节点的双向循环链表,在表头插入节点 p,以下四步操作无论什么顺序执行结果都正确。
# 1
p.next = head.next
# 2
p.prev = head
# 3
head.next.prev = p
# 4
head.next = p
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析