Algorithms

Contiguous memory

Data stored in adjacent memory spots, one next to the other. It lets you compute where each element is.

Example

An array starting at address 2,000 with 8-byte elements has element 10 at 2,000 + 10 × 8 = 2,080.

Test yourself: Contiguous memory

Types of structures

There's no large free block of memory left, only small loose gaps. Which structure still fits?

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.