I am trying to implement the merge sort algo. I have written the following code
I have a slight problem here. If I take the number of elements in "b" array more than number of elements in "a" array, I get a ArrayIndexOutOfBoundsException.I works when both "a" and "b" have same number of elements and when "a" has more elemetnts than "b". Please help me resolve this .
posted 11 years ago
I am not too sure about your logic. But I found two solution for the problem....