In the previous blog post http://www.jijichiz.com/java-merge-sort-integer-arrays-without-using-pre-defined-functions/, we helped George define a function to merge and sort lists of integers. But in this next post, we are now going to help him merge and sort lists of integers. Same problem, he’s got two unordered lists of integers such as below: [2, 3, 1] [2, 5, 5, […]
merge
Java merge and sort integer arrays without using pre-defined functions
George has a problem. He’s got two unordered integer arrays such as below: {2, 3, 1} {2, 5, 5, 8, 9, 13} Now, he wants to merge these two and sort them in ascending order. He is not allowed to use any sort functions to solve this problem. The result should display: [1, 2, 2, […]