linkedstackuos.java
来自「国外的数据结构与算法分析用书」· Java 代码 · 共 23 行
JAVA
23 行
/* LinkedStackUos.java
* ---------------------------------------------
* Copyright (c) 2001 University of Saskatchewan
* All Rights Reserved
* --------------------------------------------- */
package dslib.dispenser;
import dslib.list.LinkedSimpleListUos;
/** An implementation of StackUos that uses a LinkedSimpleListUos to store the items. Item refers
to the top item of the stack, and it can be deleted. There are also methods to insert
items and check for empty. */
public class LinkedStackUos extends StackUos
{
/** Construct an empty stack. <br>
Analysis: Time = O(1) */
public LinkedStackUos()
{
rep = new LinkedSimpleListUos();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?