Skip to content

Mistake in re-assigning the value of high #2

@ialhasan2

Description

@ialhasan2

Mistake in re-assigning the value of high

Incorrect output can be replicated by searching for 5 in this array { 2, 2, 2, 2, 3, 4, 5, 7, 7, 8, 10, 13, 13, 14, 14, 15, 15, 15, 16, 19 }
The correct re-assigning is with "-1"
high = mid - 1;

Regards,
iAlhasan ^_^

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