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.
Start exploring
Section titled “Start exploring”- Hash tables — Insert values into buckets and visualize collisions.
- Stacks and queues — Compare LIFO and FIFO behavior.
| 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 |