Skip to content

Problem8有错误 #1

Description

@taoran92

if(array[leftIndex+1]!=array[rightIndex-1]) { mid=array[leftIndex+1]<array[rightIndex-1]?leftIndex+1:rightIndex-1; break; }
这里不能直接就定下mid,反例 {3,3,3,3,1,2,3},结果为2,expected1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions