返回知识点目录
BOK 数据结构
数据结构

2022-01

选择题2 分

下列程序段的时间复杂度是( )。

int sum = 0;
for (int i = 1; i < n; i *= 2)
    for (int j = 0; j < i; j++)
        sum++;