IsEmpty checks whether Deque is empty or not.
()
| 75 | |
| 76 | // IsEmpty checks whether Deque is empty or not. |
| 77 | func (dq *DoublyEndedQueue[T]) IsEmpty() bool { |
| 78 | return len(dq.deque) == 0 |
| 79 | } |
| 80 | |
| 81 | // Length gets the length of Deque. |
| 82 | func (dq *DoublyEndedQueue[T]) Length() int { |