土豪短靴

文章
7
资源
0
加入时间
2年10月21天

Java中的栈操作

java中常用的栈操作 top赋初值是-1,入栈先做top++,出栈先赋值后top– 如图: 示例代码:public interface IStack { void push(Object obj) throws Exception; Object pop() throws Exception; boolean isEmpty();}```接口的实现public cla

hdu 1242 Rescue(bfs+优先队列)Rescue

RescueTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11533    Accepted Submission(s): 4197Problem DescriptionAngel was caught by th