问答题
设计一个双向起泡排序算法,即在排序过程中交替改变扫描方向。
【参考答案】
此题暂无答案,小编努力补充中……
热门
试题
问答题
写出下列程序段的输出结果。(假设此栈中元素的类型是char) voide main( ) {stack s; char x,y; InitStack(s) x=‘1’,y=‘0’ push(s,x); push(s,x); push(s,y); push(s,x); push(s,‘e’); push(s,x); pop(s,x); push(s,‘h’); while(!stackEmpty(s)) {pop(s,y); printf(y); } prinft(x) }