ข้ามไปยังเนื้อหา
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.

เอกสารประกอบการเรียน

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP