<div dir="ltr"><font size="4">Hey guys,</font><div><font size="4"><br></font></div><div><font size="4">I'm trying to master the merge sort algorithm and definitely experiencing some failure.  My merge program works great.  It takes two arrays, and assuming that they are already sorted, the two sorted arrays get merged together into one unified sorted array.  So that's not the problem.</font></div><div><font size="4"><br></font></div><div><font size="4">The problem is my mergeSort program.  I inserted a couple of print statements to print out the intermediate results of the recursion, and it appears that all my program does is break the array down into pieces and then rebuilds the pieces.... into the original array!  (Could be worse I guess.  No error messages!  But the output is totally useless.)  I'm honestly at a loss.  I know I'm really close to the right solution, but there is something that I'm missing and I can't figure it out.  I've been struggling with this for a couple days now, and I'm ready to give up.  Can someone please enlighten me?</font></div><div><font size="4"><br></font></div><div><font size="4">Thanks!!!</font></div><div><font size="4"><br></font></div><div><font size="4">Best,</font></div><div><font size="4"><br></font></div><div><font size="4">Douglas.</font></div></div>