测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A31211. 下列二分枚举算法中,{ }处应该填入的程序是({}不算做程序的一部分)( )。def binary_search(arr, x): low = 0 high = len(arr) - 1 while low <= high: { } return -1

单选题 10

题目描述

下列二分枚举算法中,{ }处应该填入的程序是({}不算做程序的一部分)(    )。

def binary_search(arr, x):

      low = 0

      high = len(arr) - 1

      while low <= high:

            {

            }

      return -1

选项(单选)

上一题 下一题