首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
Suppose elements in array A are already sorted ascending order of their values when the code begins to run, then execution time
Suppose elements in array A are already sorted ascending order of their values when the code begins to run, then execution time
admin
2009-02-24
76
问题
Suppose elements in array A are already sorted ascending order of their values when the code begins to run, then execution time of the code will be
选项
A、O(log2n)
B、O(n)
C、O(nlog2n)
D、O(n2)
答案
D
解析
转载请注明原文地址:https://www.kaotiyun.com/show/Z2NZ777K
0
笔试
原NCRE全国计算机四级
NCRE全国计算机四级
相关试题推荐
Digitaldatacanalsoberepresentedby(71)signalsbyuseofamodem.Themodemconvertsaseriesofbinaryvoltage(72)into
下面的网络中,属于电路交换网络的是(1),属于分组交换网络的是(2)。(2)
Routersperformthedecisionprocessthatselectswhatpathapackettakes.These(71)layerdevicesparticipateinthecollection
Wehavealreadycoveredthetopicofnetworkaddresses.Thefirst(1)inablock(inclassA,B,andC)definesthenetworkaddres
某公司申请了一个B类地址块128.10.0.0/16,公司网络要划分为8个子网,这时子网掩码应该是___________(33),下面列出的4个网络地址中,属于广播地址的是___________(34)。(34)
IEEE802.11小组制定了多个WLAN标准,其中可以工作在2.4GHz频段的是(35)。在WLAN系统中,AP的作用是(36)。(35)
若机器码采用16 bit表示,则采用补码时所能表示的最小整数为(7);采用原码时所能表示的最小整数为(8)。对于十六位的机器码1110001010000000,若它表示一个整数的原码,则这个数的真值为(9);若它表示一个整数的反码,则这个数的十六进制真值为
阅读以下函数说明和C语言函数,将应填入(n)处的字句写在答题纸的对应栏内。【说明】函数intfunl(intm,intn)的功能是:计算并返回正整数m和n的最大公约数。【函数2.1】intfunl(ihtm,intn){
______software,alsocalledend-userprogram,includesdatabaseprograms,wordprocessors,spreadsheetsetc.A.ApplicationB.Sy
HowmanyequalvaluablerelationdoessetEprocess?()E={0,1,2}
随机试题
慢性宫颈炎以局部治疗为主,根据病理类型采用不同的治疗方法。()
患者,男,32岁。半年来消瘦、多汗、易急躁,3个月来发作性心悸。查体:血压150/70mmHg,心律完全不整,脉率72次/分,心率98次/分,心音强弱不等。患者心律失常最可能是
A.指关节变形B.膝关节变形C.足内、外翻D.匙状甲E.杵状指缺铁性贫血患者常出现的体征是()
肺部叩诊过清音提示
关于仲裁协议的效力,下面说法错误的是:()
下列关于工程造价全过程动态控制的表述中,正确的是()。
希腊军队与波斯军队相遇,希腊军队只有一万人,波斯军队则有5万之众。因寡不敌众,希腊军队的统帅决定撤退,并选择了一条绝路作为撤退路线。其理由是:如果希腊士兵知道这是一条绝路后,就会因为没有退路而拼死抵抗,拼死抵抗能给敌人以重创;如果波斯军队知道这是一条绝路后
下列命令中,不能用于测试域名到IP地址转换的是()。
E-commerceIsHeretoStayNeithertheabsolutelevelofInternetsalesnorthegrowthratetellsthewholestory,butthis
Itisgenerallyacceptedthatoldpeopleshouldhaveashareintherewardsformaterialandculturaladvancementstowhichthey
最新回复
(
0
)