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 Incorrect test case #301

Open
ravichandrae opened this issue Oct 31, 2020 · 0 comments
Open

Comments

@ravichandrae
Copy link

https://github.com/mission-peace/interview/blob/master/src/com/interview/binarysearch/MedianOfTwoSortedArrayOfDifferentLength.java
Line#47 passes an unsorted array as input, it expects a sorted array
int[] y = {7, 11, 19, 21, 18, 25};
should be
int []y = {7, 11, 18, 19, 21, 25};

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