본문 바로가기

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

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP