Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MedianOfTwoSortedArrayOfDifferentLength.java #247

Open
pinggit opened this issue Oct 14, 2019 · 0 comments
Open

MedianOfTwoSortedArrayOfDifferentLength.java #247

pinggit opened this issue Oct 14, 2019 · 0 comments

Comments

@pinggit
Copy link

pinggit commented Oct 14, 2019

this looks great! most clear answer ever.
but, this does not looks a "binary" search - the loop looks still a linear search, from 0 - len().
I guess instead of every time -1 or +1 on failure, use /2 to jump back or forth. only that will be the binary search?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant