Class MyCircularDeque
- java.lang.Object
-
- g0601_0700.s0641_design_circular_deque.MyCircularDeque
-
public class MyCircularDeque extends Object
-
-
Constructor Summary
Constructors Constructor Description MyCircularDeque(int k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
deleteFront()
boolean
deleteLast()
int
getFront()
int
getRear()
boolean
insertFront(int value)
boolean
insertLast(int value)
boolean
isEmpty()
boolean
isFull()
-
-
-
Method Detail
-
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()
-
-