堆栈(Stack):具有一定操作约束的线性表只在一端(栈顶,Top)做插入和删除1、栈的顺序存储实现栈的顺序存储结构通常由一个一维数组和一个记录栈顶元素位置的变量组成。(1)存储#define MaxSize typedef struct { ElementType Data[MaxSize] in...
分类:
其他好文 时间:
2015-01-09 19:04:58
阅读次数:
151
http://www.byywee.com/page/M0/S931/931767.html运行rejoin-stack.sh脚本的核心:exec screen -c $TOP_DIR/stack-screenrcstack-screenrc文件存储启动的信息:例如trove的启动screen -t...
分类:
其他好文 时间:
2015-01-09 18:58:31
阅读次数:
198
import sysdef get_cur_info(): try: raise Exception except: f=sys.exc_info()[2].tb_frame.f_back return (f.f_code.co_name,f.f_lin...
分类:
其他好文 时间:
2015-01-09 18:52:09
阅读次数:
236
1.<map>图像映射点击图片不同区域<imgsrc="planets.jpg"border="0"usemap="#planetmap"alt="Planets"/>
<mapname="planetmap"id="planetmap">
<areashape="circle"coords="180,139,14"href="venus.html"alt="Venus"/>
<areashape="circle"coords="1..
分类:
Web程序 时间:
2015-01-09 17:37:26
阅读次数:
417
非常经典的问题,使用栈来解决,我这里自己实现了一个栈,当然也能够直接用java自带的Stack类。自己实现的栈代码:import java.util.LinkedList;class StackOne { LinkedList data; int top; int maxSize; StackOne...
分类:
其他好文 时间:
2015-01-09 12:00:02
阅读次数:
155
最近,在找IOS截屏的方法。找到一个,现在记录下来。跟我想的差不多,还是,进入操作(初始化),操作(复制当前屏幕,保存),退出。最小的操作结构。1 . 先指定图像的大小UIGraphicsBeginImageContext(view.frame.size);2. 在指定的区域绘制图像[view dr...
分类:
移动开发 时间:
2015-01-08 20:04:06
阅读次数:
195
一、栈
1.栈(stack):是限定仅在表尾进行插入和删除操作的线性表。其中,允许插入和删除的一端被称为栈顶(top),另一端被称为栈底(bottom),不含任何数据元素的栈被称为空栈。栈又被称为后进先出(Last
In First Out)的线性表,简称LIFO结构。
栈的插入操作为进栈,栈的删除操作为出栈。
2.栈的抽象数据类型
ADT 栈(stack)
Data...
分类:
其他好文 时间:
2015-01-08 18:13:02
阅读次数:
228
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-01-08 12:51:24
阅读次数:
114
1.我们可以命名的资源种类有多少?答:res/anim/XML文件,它们被编译进逐帧动画(frame by frame animation)或补间动画(tweened animation)对象res/drawable/.png、.9.png、.jpg文件,它们被编译进以下的Drawable资源子类型...
分类:
移动开发 时间:
2015-01-07 23:26:45
阅读次数:
227
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-01-07 23:21:50
阅读次数:
181