Stack, Queue
Lists actually support all the operations of a stack. The same is true for queues.
Since lists are implemented as dynamic arrays, they are not efficient for performing queue operations, so a separate data type called Deque must be used to achieve good performance for queues.
Last updated