[单选题]

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)

参考答案与解析:

相关试题

Suppose two dimensional array A[0..8, 0.

[单选题]Suppose two dimensional array A[0..8, 0..9] (with element length of 2 bytes) is stored using row major order, and the base address is 400.Then the address of element A[8, 5] isA.570B.506C.410D.482

  • 查看答案
  • Suppose two dimensional array A[0..8,0..

    [单选题]Suppose two dimensional array A[0.8,0.9](with element length of 2 bytes) is stored using row major order,and the base address is 400.Then the address of the element A[8,5]isA.570B.506C.410D.482

  • 查看答案
  • What are the five elements in the theory of five elements?

    What are the five elements in the theory of five elements?A. Metal, wood, water,

  • 查看答案
  • 给定下面的代码:byte[]array1,array2[];byte array

    [单选题]给定下面的代码: byte[] array1,array2[]; byte array3[] []; byte [] [] array4; 如果上面的每一个数组都初始化了,以下各项语句中错误的是( )。A.array2 =array1B.array2=array3C.array2=array4D.both A and B

  • 查看答案
  • Which of the following elements can be

    [单选题] Which of the following elements can be called the key element of a computer?(71)(71)A.printerB.CPUC.mouseD.keyboard

  • 查看答案
  • Which of the following elements can be c

    [单选题]Which of the following elements can be called the key element of a computer?(71)A.printerB.CPUC.mouseD.keyboard

  • 查看答案
  • What are the major elements of folk music?

    What are the major elements of folk music?A. Oral tradition, simple and easy to

  • 查看答案
  • What do you suppose ____?

    What do you suppose ____?A. is the matterB. is happenedC. is the wrongD. the tro

  • 查看答案
  • 对于数组 float array[5][4],若数组元素 array[0][

    [单选题] 对于数组 float array[5][4],若数组元素 array[0][0]的地址为 2400,每个数组元素长度为 32 位(4 字节),且假定其采用行序为主的存储模式,那么 array[3][2]的内存地址为 (46) 。(46)A. 2448B. 2452C. 2456D. 2460

  • 查看答案
  • makes nearly all the rich elements of hu

    [主观题]makes nearly all the rich elements of human expression needed to establish a

  • 查看答案