1141: 链表中间插入(夯实基础)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:24
Solved:16
Description
题目描述
#在"compue"中间插入"t",请将下面程序补充完整。
a=[['m',2],['o',0],['p',3],['u',4],['e',-1],['c',1]]a=[['m',2],['o',0],['p',3],['u',4],['e',-1],['c',1]]
head=5
a=[['m',2],['o',0],['p',3],['u',4],['e',-1],['c',1]]a=[['m',2],['o',0],['p',3],['u',4],['e',-1],['c',1]]
head=5
Output
[['m', 2], ['o', 0], ['p', 3], ['u', 6], ['e', -1], ['c', 1], ['t', 4]]
Sample Input Copy
Sample Output Copy
[['m', 2], ['o', 0], ['p', 3], ['u', 6], ['e', -1], ['c', 1], ['t', 4]]