Skip to content

Smallest without min · ⁨不用 min 找最小值⁩

English

Smallest without min

Return the smallest number in a list without using min.

It is the mirror image of the previous drill: start with the first item and replace it whenever you meet a smaller one.

中文

不用 min 找最小值

不使用 min,返回列表中最小的数。

它和上一题正好相反:从第一个元素开始,每遇到更小的数就把它换掉。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩