Skip to content

Data structures

Data structures decide how information is stored and how efficiently it can be accessed. The right choice depends on the operations you need most often.

Structure Typical strength Key idea
Array Fast indexed access Contiguous or array-like storage
Stack Undo/history Last in, first out
Queue Scheduling/tasks First in, first out
Hash table Fast average lookup Hash keys into buckets