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 ถ้าค่านั้นไม่มีอยู่
  • วิธีคลาสสิกสองวิธีคือการค้นหาแบบเชิงเส้นและการค้นหาแบบทวิภาค

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP