对于一个具有n个结点的单链表 在已知的结点*p后插入一个新结点的时间复杂度为O(___) 在给定值为x

大学网课 已帮助 人

对于一个具有n个结点的单链表,在已知的结点*p后插入一个新结点的时间复杂度为O(___),在给定值为x的结点后插入一个新结点的时间复杂度为O(___)。(请依次填入,格式为(a)(b),如果您的答案中出现字母,请使用小写;后一空系统基于字符匹配来判定答案,所以您的答案中不要出现空格) For a single linked list with n nodes, and after a known node *p to insert a new node, the time complexity is O (___); after a given node with x value insert a new node, the time complexity is O (___). (If your answer contains letters, use lowercase one.The second blank is judged by string matching, Please

对于一个具有n个结点的单链表 在已知的结点*p后插入一个新结点的时间复杂度为O(___) 在给定值为x

热搜:二叉链表作为二叉树的存储结构,在具有n