Skip to content · ⁨コンテンツへスキップ⁩
English

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.
日本語

リストの検索

  • 検索とは、値がリストに含まれているかどうか、そしてその位置を特定することです。
  • 通常の答えは値のインデックスであり、存在しない場合は-1です。
  • 2つの古典的な手法として、線形探索と二分探索があります。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP