Class MyCircularDeque
java.lang.Object
g0601_0700.s0641_design_circular_deque.MyCircularDeque
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
getFront()
int
getRear()
boolean
insertFront
(int value) boolean
insertLast
(int value) boolean
isEmpty()
boolean
isFull()
-
Constructor Details
-
MyCircularDeque
public MyCircularDeque(int k)
-
-
Method Details
-
insertFront
public boolean insertFront(int value) -
insertLast
public boolean insertLast(int value) -
deleteFront
public boolean deleteFront() -
deleteLast
public boolean deleteLast() -
getFront
public int getFront() -
getRear
public int getRear() -
isEmpty
public boolean isEmpty() -
isFull
public boolean isFull()
-