typescript-algorithms-and-datastructures
Version:
Useful algorithms and Data structures written in typescript.
14 lines (13 loc) • 380 B
TypeScript
import { ITypedArray } from "./ITypedArray";
export declare class TypedQueue {
protected queue: ITypedArray;
protected head: number;
protected tail: number;
protected memoryLength: number;
constructor(queue: ITypedArray);
enqueue(element: number): void;
dequeue(): number;
isEmpty(): boolean;
peek(): number;
size(): number;
}