Skip to content

Searching

Handout

Searching a list

  • Searching means finding whether a value is in a list, and where.
  • The usual answer is the index of the value, or -1 if it is missing.
  • Two classic methods are linear search and binary search.

Handout

Log in or create account

IGCSE & A-Level