下列代码片段的时间复杂度是多少:(a)
function(int n)
{
if(n == 1) return;
for(int i = 1 ; i <= n ; ++i) {
for(int j = 1 ; j <= n ; ++j) {
printf("*");
break;
}
}
}
a. O(n)
b. O(n^2)
c. O(1)
d. O(2n)
以下为一串彼此连结的齿轮,请依图中 A 齿轮的旋转方向,选出 B、C 均为顺时钟
转动着(a)
a. 6
b. 1
c. 2,3
d. 4
只能在到期日当日行权的权证叫做(a)。
a. 欧式权证
b. 美式权证
c. 英式权证
d. 百慕大式权证
以下不能进行赎回的基金种类是(b)
a. ETF
b. 封闭式基金
c. LOF 基金
d. 分级基金
在下列 C 代码中:
struct Celode
{
struct Celode *lchild;
int element;
struct Celode *rChild;
}
int DoSomething(struct Celode *ptr)
{
int value = 0;
if (ptr != NULL)
{