insert ( len ( data ) , i ) return data

用大 O 记号表示下列程序段[1]的时间复杂度为 _

def b3 ( n ) : 

data = [ ]

for i in range ( n ) : 

   data . insert ( len ( data ) , i ) 

return data

参考答案与解析:

相关试题

Insert Subscriber Data发生在以下什么设备之间?()

[单选题]Insert Subscriber Data发生在以下什么设备之间?()A . MS---SGSNB . SGSN---HLRC . SGSN---GGSND . SGSN---MSC

  • 查看答案
  • When using stock return data, a geometric mean return calculation is most likely preferred over a ge

    [单选题]When using stock return data, a geometric mean return calculation is most l

  • 查看答案
  • An analyst collects the following data on the return on equity (ROE) and the payout ratio for two co

    [单选题]An analyst collects the following data on the return on equity (ROE) and th

  • 查看答案
  • ( )is a collection of data sets, which i

    [单选题]( )is a collection of data sets, which is so large and complex that it becomes difficult to process using on-hand database management tools or traditional data processing applications.A . Big dataB . ClusterC . Parallel computingD . Data warehous

  • 查看答案
  • 已知有变量 data1 定义如下: union data { int i;

    [单选题] 已知有变量 data1 定义如下:union data{ int i;char ch;float f;} data1;则变量 data1 所占的内存存储空间可表示为 (57) 。(57)A. sizeof(int)B. sizeof(char)C. sizeof(float)D. sizeof(int)+sizeof(char)+sizeof(float)

  • 查看答案
  • Use the following data to calculate the standard deviation of the return:<br />·50% chance of

    [单选题]Use the following data to calculate the standard deviation of the return:·5

  • 查看答案
  • Output is data that has been processed i

    [单选题]Output is data that has been processed into useful form. called(72). That is a computer processes input into output.A.dataB.informationC.interfaceD.system

  • 查看答案
  • Given the following portfolio data, the portfolio return is closest to:<br /><img border=&q

    [单选题]Given the following portfolio data, the portfolio return is closest to:A.8.

  • 查看答案
  • In a data warehouse environmem, data is

    [单选题]In a data warehouse environmem, data is only valuable when it is organized and displayed as(75)A.dataB.informationC.fileD.document

  • 查看答案
  • In the data link layer, the data unit is

    [单选题]In the data link layer, the data unit is called(71).A.flameB.PacketC.SignalD.APDU

  • 查看答案