Skip to content

[BUG] Possible underflow in binary search  #85

Closed
@Vikram710

Description

@Vikram710

Possible underflow in binary search here

example input arr = {2} target = 1

middle will be 0
maximum = middle - 1; 0 -1
0x11: If an arithmetic operation results in underflow or overflow outside of an unchecked { ... } block.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions