Questions tagged [deque]

A double-ended queue. Container datatype which is typically supporting efficient insertion and removal from two ends.

993 questions
-6
votes
1 answer

Java Data Structures (Most Efficient Structure For Specific Program)

Question from textbook exercise: A hospital has a capacity of n patients. Each time a patient comes in he is assessed and, if in noncritical condition, has to wait his turn. If in critical condition, he is moved as the next to be treated. If a…
Con Winna
  • 3
  • 2
1 2 3
66
67