时间复杂度题目很简单 但是我对这里不太熟 求解释What is the complexity required to p

时间复杂度题目
很简单 但是我对这里不太熟 求解释
What is the complexity required to print all elements in an array of size N whose indices are a power of 2?
就是一个长度为N的数组,打印出所有指针数是偶数的指针的值,时间复杂度为?
sunwes 1年前 已收到1个回答 举报

二太岁 幼苗

共回答了17个问题采纳率:100% 举报

翻译错了吧.输出索引为2的指数的元素.复杂度应该是O(logn).

1年前

2
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.037 s. - webmaster@yulucn.com