下列程序段中算法的时间复杂度是for(int i=0;ia[i]=i*2;
A.O(1)
B.O(n)
C.O(n²)
D.O(2n)
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/1154721.html
上一篇:人物形象的塑造显示着作者对社会生活体验的深度和广度,是小说作品能够发挥持久生命力的关键点。
下一篇:The Successful Clothing ShopThe success story started in northern Italy towards the end of the Second World War. Leone Benetton had a bicycle rental (租赁) business in the town of Treviso. He wanted his eldest son Luciano to study and become a doctor.