填空题

对于长度为n的线性表,若进行顺序查找,则时间复杂度为 【1】 。

【参考答案】

O(n)
<上一题 目录 下一题>
热门 试题

填空题
软件生命周期一般可分为以下阶段:问题定义、可行性研究、 【3】 、设计、编码、 【4】 、运行与维护。
单项选择题
有以下程序: #include <iostream> using namespace std; class A { private: int x,y; public: void set (int i,int j) { x=i; y=j; } int get_y() { return y; } }; class box { private: int length,width; A label; public: void set(int 1,int w, int s,int p) { length=1; width=w; label.set(s,p); } int get_area() { return length*width; } }; int main() { box small; small.set(2,4,1,35); cout<<small.get_area()<<end1; return 0; } 运行后的输出结果是( )。
A.8
B.4
C.35
D.70
相关试题
  • 以下程序运行后的输出结果是 【14】 。...
  • 若有以下程序:#include <iostream>usi...
  • 有如下的程序:#include <iostream>#i...
  • 在C++语言中,每个类都有一个隐含的指针...
  • 经常和一个运算符连用,构成一个运算符函数...