问答题
设顺序表L是一个递减有序表,试写一算法,将x插入其后仍保持L的有序性。
【参考答案】
只要从终端结点开始往前找到第一个比x大(或相等)的结点数据,在这个位置插入就可以了。算法描述如下:
int I......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
<上一题
目录
下一题>
热门
试题
问答题
根据如下表的查询结果,求以下语句的结果。 SQL>select * from usertable; USERID USERNAME 1 user1 2 null 3 user3 4 null 5 user5 6 user6 SQL>select * from usergrade; USERID USERNAME GRADE 1 userl 90 2 null 80 7 user7 80 8 user8 90 执行语句: (1) select count(*)from usergrade where username not in(select username from usertable); (2) select count(*)from usergrade g where not exists(select null from usertable t where t.userid=g. userid and t.username=g.username);
点击查看答案
判断题
一般的浏览器可以接受的图片格式只有GIF格式。( )
点击查看答案&解析
相关试题
Internet的主要功能有哪些
局域网的主要组件有哪些