toggle menu
KAHelpers
androidJvm
switch theme
search in API
dataStructuresAndAlgorithms
/
dev.funkymuse.datastructuresandalgorithms.queue
/
StackQueue
Stack
Queue
class
StackQueue
<
T
>
:
Queue
<
T
>
Same complexity as Ring buffer queue
Parameters
T
Members
Members & Extensions
Constructors
Stack
Queue
Link copied to clipboard
constructor
(
)
Properties
count
Link copied to clipboard
open
override
val
count
:
Int
Int
is
Empty
Link copied to clipboard
open
override
val
isEmpty
:
Boolean
Boolean
is
Not
Empty
Link copied to clipboard
open
val
isNotEmpty
:
Boolean
Functions
dequeue
Link copied to clipboard
open
override
fun
dequeue
(
)
:
T
?
enqueue
Link copied to clipboard
open
override
fun
enqueue
(
element
:
T
)
:
Boolean
peek
Link copied to clipboard
open
override
fun
peek
(
)
:
T
?
reverse
Link copied to clipboard
fun
<
T
>
Queue
<
T
>
.
reverse
(
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String