第28578题 单选题
针对升序整数数组实现查找第一个大于等于target的元素下标,以下哪个代码可以正确完成需求?

以下代码均使用Python语言实现,输入的nums为严格升序的整数数组,若所有元素都小于target则返回数组长度n:

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析