Skip to content

Linear collections

↑

These structures organize elements in sequences or constrained access orders. Decide whether you need indexing, LIFO, FIFO or text processing, then compare operations and costs.

  • Arrays: How indexing, storage and traversal work.

  • Queues: Learn the order of operations with a hands-on example.

  • Stacks: Learn the order of operations with a hands-on example.

  • Strings: Work with immutable text, indexing and Unicode.

Start with one concept, work through a small example, and verify your prediction. Follow linked topics when a prerequisite or related idea needs more explanation.