Closed Vikram710 closed 1 year ago
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.
@Panquesito7 assign me this task i can fix it !!
@mkubdev @Panquesito7 can you please check my updated code also verify the pull request that i made !! FIXED THE BUG !!
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.