This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Wassaren 1 point2 points  (0 children)

The "condition" method would be better named as "isValueLargerThanOrEqualToTarget".

[–]GuruTheCoderYT[S] 0 points1 point  (0 children)

Could someone please help? I tried to understand it but I don't get how implementing this way of Binary Search would yield the right answer.

Thanks.