Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#301·interview

MedianOfTwoSortedArrayOfDifferentLength.java Incorrect test case

Author: ravichandraeCreated Oct 31, 2020Updated Oct 31, 2020

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};

Source: mission-peace/interview

View original on GitHubView discussion on GitHub