You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
539 B

4 months ago
export default class Stack {
private linkedList;
private maxStep;
constructor(maxStep?: number);
get length(): number;
/**
*
*/
isEmpty(): boolean;
/**
*
*/
isMaxStack(): boolean;
/**
* 访
*/
peek(): any;
push(value: any): void;
pop(): any;
toArray(): any[];
clear(): void;
}