首页
函数strcmp('stcabuc','stbabuc')的返回值是()。
精华吧
→
答案
→
超星尔雅学习通未分类
函数strcmp('stcabuc','stbabuc')的返回值是()。
A.0
B.-1
C.2
D.1
正确答案:D
Tag:
数据结构与算法
函数
时间:2021-04-11 13:52:07
上一篇:
已知串S=‘aaab',其next函数值为()。
下一篇:
KMP算法的特点是在模式匹配时指示主串的指针不会回溯。
相关答案
1.
设有两个串p和q,其中q是p的子串,求q在p中首次出现的位置的算法称为()。
2.
若串S='software',其前缀真子串的数目是()。
3.
串是一种特殊的线性表,其特殊性体现在()。
4.
在对不带头结点的链队列作出队操作时,不会改变头指针的值。
5.
两顺序栈共享空间,也存在空间溢出问题。
6.
对于一个具有n个结点的单链表,在已知的结点*p后插入一个新结点的时间复杂度和在给定值为x的结点后插入一个新结点的时间复杂度分别为()。
7.
用带头结点的单链表表示队长大于1的队列时,其队头指针指向队头结点,其队尾指针指向队尾结点,则在进行删除操作时()。
8.
最大容量为n的循环队列,队尾指针为rear,队头指针为front,则队空的条件是()。
9.
递归过程或函数调用时,处理参数及返回地址需要用一种()的数据结构。
10.
表达式a*(b+c)-d的后缀表达式是()。
热门答案
1.
设计一个判别表达式中括号是否匹配出现的算法,采用()的数据结构最佳。
2.
设栈S和队列Q的初始状态为空,元素e1,e2,e3,e4,e5和e6依次通过栈S,一个元素出栈后随即进入队列Q,若6个元素出队的序列是e2,e4,e3,e6,e5,e1,则栈S的容量至少应该是()。
3.
栈和队列都是()。
4.
线性表的链式存储结构中,逻辑上相邻的两个元素在物理位置上并不一定相邻。
5.
顺序表适宜于顺序存取,而链表适宜于随机存取。
6.
静态链表与动态链表在元素的插入、删除上类似,不需做元素的移动。
7.
对于一个头指针为head的带头结点的单链表,判定该表为空表的条件是()。
8.
在单链表指针为p的结点之后插入指针为s的结点,正确的操作是()。
9.
若长度为n的线性表采用顺序存储结构,在其第i个位置插入一个新元素的算法的时间复杂度为()。
10.
某线性表中最常用的操作是在最后一个元素之后插入一个元素和删除第一个元素,则采用()存储方式最节省运算时间。