Computer Science / Unit 3 CS 0097 short lesson, about 20 seconds
The List
Captions available
The idea
A list is an abstract data type for an ordered sequence of elements, allowing adding, retrieving, and removing at any position — each element reachable by its index.
In practice
A to-do list keeps tasks in order, and the third item is findable by asking for position three.
Where people slip
Order and index are the list's whole promise.
Your place on the trail
Every lesson rests on earlier ones and opens later ones. Tap any to jump.
Something wrong in this lesson? Flag it · Sources for Computer Science