fix binary search to handle duplicates correctly#13875
fix binary search to handle duplicates correctly#13875prsai0110 wants to merge 1 commit intoTheAlgorithms:masterfrom
Conversation
Closing this pull request as invalid@prsai0110, this pull request is being closed as none of the checkboxes have been marked. It is important that you go through the checklist and mark the ones relevant to this pull request. Please read the Contributing guidelines. If you're facing any problem on how to mark a checkbox, please read the following instructions:
NOTE: Only |
|
Added a new implementation of binary search that correctly returns the first occurrence of a target value when duplicates are present. Includes test case for validation. |
1 similar comment
|
Added a new implementation of binary search that correctly returns the first occurrence of a target value when duplicates are present. Includes test case for validation. |
Describe your change:
Checklist: