软导作业
来源:互联网 发布:淘宝宝贝视频怎么上传 编辑:程序博客网 时间:2024/06/06 01:29
1. Bubble Sort the list: 33, 56, 17, 8, 95, 22。Make sure the final result is from small to large. Write out the list after the 2nd pass.
2. Give a sorted array as list={60,65,75,80,90,95}. Design an algorithm to insert the value of x into the sorted array. Then test the algorithm with value 50,67,99.思考: 为什么选择插入点在list头上、 中间、 尾巴上的三个数作为 算法测试的数据, 你能解释吗?
3. What is the state of the stack after the following sequence of Push and Pop operations? Push “anne”; Push “get”; Push “your” ; Pop; Push “my” Push “gun”
1.
1) . 33,56,17,8,95,22
2) 33,17,56,8,95,22
3) 33,17,8,56,95,22
4) 17,33,8,56,95,22
5) 17,8,33,56,95,22
6) 8,17,33,56,95,22
7) 8,17,33,56,22,95
8) 8,17,33,22,56,95
9) 8,17,22,33,56,95
So 33,17,8,56,95,22
2. 输入插入数据A
for (i = 0; i < 6; ++i) {
if ( a[i] < A < a[i + 1])
链表 a[i] < A < a[i + 1]
else if (A < a[0])
链表 A < a[0]
else
链表 A > a[5]
}
恰好对应链表的三种情况
3. Gun
My
Get
anne
- 软导作业
- 软导作业
- 软导作业图片
- 软导作业
- 软导作业
- 10.18软导作业
- 软导作业
- 软导作业
- 软导作业
- 软导作业
- 薛定谔的软导作业
- 软导作业相关图片
- 软导作业(了解一点markdown)
- [作业]思维导图
- 软工第一次作业
- 软工第一次作业
- 软工第一次作业
- 软工第一次作业
- Java中获取键盘输入值的三种方法
- 资源分配图化简法
- 洛谷1195口袋的天空
- Linux cpuidle framework(1)_概述和软件架构
- React弹框、Toast、弹出页面等简单实现方案(百达通)
- 软导作业
- (ssl 2863)石子合并
- uartlite_IP之仿真
- CSDN-markdown编辑器的详细使用方法
- Linux common clock framework(3)_实现逻辑分析
- 无法加载 DLL“dhnetsdk.dll”: 找不到指定的模块----问题处理
- (ssl 1007)乘积最大
- Linux PM domain framework(1)_概述和使用流程
- SQL数据属性的修改方法