单项选择题

n个记录直接选择排序时所需的记录最多交换次数是 ( )。

A.n-1
B.n
C.n(n-1)/2
D.n(n+1)/2
<上一题 目录 下一题>
热门 试题

单项选择题
线索二叉树中某结点为叶子的条件是 ( )。A.p-> lchild!=NULL || p-> rchild!=NULLB.p-&g
A.p->
B.p->
C.p->
D.p->
单项选择题
设p指向单链表中的一个结点,s指向待插入的结点,则下述程序段的功能是( )。s->next=p->next;p->next=s;t=p->data;p->data=s->data;s->data=t;
A.结点*p与结点*s的数据域互换
B.在p所指结点的元素之前插入元素
C.在p所指结点的元素之后插入元素
D.在结点*p之前插入结点*s
相关试题
  • 当使用魔棒工具选择图像时,在“容差”数值...
  • From this passage we can learn tha...
  • By saying However,for all this,the...
  • Which of the following statements i...
  • The word “appeal to ”in Para.4p...