Tagged in

Data Structures

amiralles
amiralles
Concise programming articles for those who code
More information
Followers
257
Elsewhere
More, on Medium

Mastering data structures in Ruby — Queues

Queues are a special kind of linked lists that allows you to handle a variable-sized collection of elements in first in first out fashion (FIFO). As well as all of the data structures we have seen so far; queues are just sequences of connected nodes.