Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Smallest and largest · ⁨เล็กสุดและใหญ่สุด⁩

English

Smallest and largest

Find both ends of a list in a single pass.

Keep two values at once, both starting as the first item. Check each number against both: it may replace the smallest, the largest, or neither.

ไทย

น้อยสุดและมากที่สุด

หาขอบเขตทั้งสองของรายการ在一次 pass (in a single pass).

เก็บสองค่าพร้อมกัน, ทั้งคู่เริ่มต้นด้วยไอเท็มแรก. ตรวจสอบแต่ละตัวเลขเทียบกับทั้งสอง: มันอาจแทนที่ค่าน้อยสุด, ค่ามากที่สุด, หรือ neither (neither).

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

IGCSE, A-Level & AP