皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
【Test-10-4】下面算法的功能是:为了保证快速排序在最坏情况也有较高的排序效率,可选待排序序列的第一个元素、最后一个元素和位置位于最中间的一个元素,在三者之中选择一个其值居中的元素,将其交换到待排序序列的第一个元素位置,再做一趟划分。若设整数数组A有n个元素,设计一个函数,实现上述三者取中并交换到待排序序列第一个元素位置的功能。请在空白处填入正确的语句。voidmediacy(ElemTypeA[],intlow,inthigh){ElemTypetemp;intk=(_______①______)?high:low;//两个子女中k指示大者int________②________;if(_______③________){//最大值交换到mid位置temp=A[mid];A[mid]=A[k];A[k]=temp;}if(________④_______){//比较两个小的,大者调到lowtemp=A[high];A[high]=A[low];A[low]=temp;}}
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【判断题】由于期货每日盯市结算、每日结清浮动盈亏,因此期货合约价值在每日收盘后都归零。
A.
正确
B.
错误
【单选题】甲是乙公司依法设立的分公司。下列表述中,符合公司法律制度规定的是( )。
A.
甲应有自己的营业执照,并独立承担民事责任
B.
甲应有独立的法人资格,并独立承担民事责任
C.
甲应有自己的营业执照,可以没有独立的财产,但独立承担民事责任
D.
甲应有自己的营业执照,但不独立承担民事责任
【简答题】幼儿园 负责幼儿园的工作。
【单选题】What’s the writer's idea about hobbies?
A.
Hobbies are only popular among the retired people.
B.
People today have little time for their hobbies.
C.
Anyone should have hobbies in their free time.
D.
People all over the world should have the same hobby.
【单选题】What’s the text mainly about?
A.
A father’s love for his children
B.
A happy meeting in a store
C.
A store clerk’s happy day
D.
A story about kindness
【单选题】“匹配模式”VI处理不同字符大小写的方式是?
A.
如未找到正则表达式,将忽略大小写
B.
始终忽略大小写
C.
始终区分大小写
D.
仅当偏移量被设置为默认值0时才区分大小写
【单选题】What is the result of the writer ’ s meeting with different people?
A.
His optimistic attitude towards his life.
B.
His awareness of the kindness of these people.
C.
An increase of photos he has taken on his journey.
D.
His changing of the way that he looks at the future.
【单选题】When it______the writer’s pastime, I was reminded______of the writer’s love of the sea.
A.
came to; once more
B.
talked to; once more
C.
refers to; again and again
D.
took up; once again
【判断题】大肠杆菌和枯草芽孢杆菌属于单细胞生物。
A.
正确
B.
错误
【简答题】大肠杆菌和枯草芽孢杆菌属于单细胞生物,唾液链球菌和金黄色葡萄球菌属于多细胞生物。
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题