句子示例
| The binary search algorithm runs in O(log n) time on a sorted array. | 二分查找算法在有序数组上的运行时间为 O(log n)。 |
| You can implement binary search iteratively or recursively. | 你可以用迭代或递归方式实现二分查找。 |
| Before applying binary search, ensure the list is sorted. | 在应用二分查找之前,请确保列表已排序。 |
| The interview question asked candidates to code a binary search from scratch. | 面试题要求候选人从头编写一个二分查找。 |
| In this case, a binary search over the index is more efficient than a linear scan. | 在这种情况下,对索引进行二分查找比线性扫描更高效。 |