一个数组由N个1和0组成,所有1都在0之前.在数组中找不到1的.很明显,使用二进制搜索它是O(log N).是否有算法在O(log(1))时间内执行此操作?
algorithm math binary-search
algorithm ×1
binary-search ×1
math ×1