A double-ended queue (deque) allows insertion and deletion at which ends?

  • A Only at the front
  • B Only at the rear
  • C Both the front and the rear
  • D Only in the middle

Explanation

A deque permits insertion and deletion at both the front end and the rear end.