Saltar al contenido

Searching & max / min

English

Linear search

  • A linear search checks items in turn; the example below continues through the list and records the last match.
  • It is a named standard method in the syllabus.
  • Use a loop and remember when you find a match.

A linear search finds 9 at index 3; the maximum of the list is 27

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP