StackQueue

class StackQueue<T> : Queue<T>

Same complexity as Ring buffer queue

Parameters

T

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val count: Int

Int

Link copied to clipboard
open override val isEmpty: Boolean

Boolean

Link copied to clipboard

Functions

Link copied to clipboard
open override fun dequeue(): T?
Link copied to clipboard
open override fun enqueue(element: T): Boolean
Link copied to clipboard
open override fun peek(): T?
Link copied to clipboard
fun <T> Queue<T>.reverse()
Link copied to clipboard
open override fun toString(): String