Algorithms

Linear structure

A data structure where elements go one after another, in a single line: each has at most one previous and one next.

Example

Arrays, linked lists, stacks and queues are linear. In a line of 20 elements, the 10th has the 9th before and the 11th after.

Test yourself: Linear structure

Types of structures

Which of these is a linear structure?

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.