I need to know how to write the code for clearing a deque using doubly linked
implementation in java.Im not sure whats wrong in this code?
/**
* Empty the deque.
*/
public void clear() {
while (!isEmpty()) {
removeFront();
}
}.
The Story of Village Palampur Class 9 Free Study Material PDF
I need to know how to write the code for clearing a deque us.pdf
1. I need to know how to write the code for clearing a deque using doubly linked
implementation in java.Im not sure whats wrong in this code?
/**
* Empty the deque.
*/
public void clear() {
while (!isEmpty()) {
removeFront();
}
}