[单选题]

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

  • 查看答案
  • 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

  • 查看答案
  • 给定下面的代码: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 c

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

  • 查看答案
  • In England,Beatles were already ______as

    [单选题]In England,Beatles were already ______as an extremely fine and highly individual rock group.A. establishedB. publishedC. abolishedD. astonished

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

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

  • 查看答案
  • Suppose and English couple whose ancesto

    [单选题]Suppose and English couple whose ancestors lived near a leafy forest wanted their new-born son to become a world leader, the baby might be named _______.A. Beatrice SmithB. Leonard CarterC. George LongstreetD. Donald Greenwood

  • 查看答案
  • Part A Directions: Suppose you are going

    [试题]Part AD.irections:Suppose you are going to graduate. You want to hold a yard sale before you leave. Write a poster to advertise your sale, providing the following information:1) time and place of the sale,2) items for sale, and3) ways to contact you.Y

  • 查看答案
  • Suppose the rated capacity of the main e

    [单选题]Suppose the rated capacity of the main engine of a ship is 10,000 KW at 100 rated rpm, then when at 80 rpm its capacity should be ().A . 800 KWB . 5120 KWC . 6400 KWD . 4180 KW

  • 查看答案