-
-
Notifications
You must be signed in to change notification settings - Fork 307
Conversation
|
||
## Algorithm | ||
|
||
Binary search works on sorted arrays. A binary search begins by comparing the middle element of the array with the target value. If the target value matches the middle element, its position in the array is returned. If the target value is less or more than the middle element, the search continues the lower or upper half of the array respectively with a new middle element, eliminating the other half from consideration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its position it**'**s position
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atjonathan: Quoting, "Its, without an apostrophe, is the possessive of the pronoun it. It’s, with an apostrophe, is a contraction of it is or it has. If you’re not sure which spelling to use, try replacing it with it is or it has. If neither of those phrases works in its place, then its is the word you’re looking for.".
Sorry for the "Grammar Nazi" behavior 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dakshshah96, no worries 😜, i see the context now.
LGTM 👍 |
@Rafase282, @alayek, please take a look 🎉 |
There is no need to put the Big O notation stuff in code blocks. other than that, it looks good. |
@Rafase282 Done 👍 |
Refer #1048