题目内容

下面程序段的时间复杂度是( )。 Count=0; for(k=1;k<=n;k*=2) for(j=1;j<=n;j++) count++;

A. O(log2n)
B. O(n)
C. O(nlog2n)
D. O(n2)

查看答案
更多问题

设n是描述问题规模的非负整数,下面程序段的时间复杂度是( )。 x=2; while(x

A. O(log2n)
B. O(n)
C. O(nlog2n)
D. O(n2)

把一棵树转换为二叉树后,这棵二叉树的形态是( )。

A. 唯一的
B. 有
C. 有多种,但根节点都没有左孩子
D. 有多种,但根节点都没有左孩子

His attack on the manager led to his instant ______ . (dismiss)

In a master’s thesis or doctoral dissertation, there is usually a separate part called “______ ” at the beginning or end, expressing the author’s gratitude to all the people who have helped him or her during the writing process. (acknowledge)

答案查题题库