I was debugging my code as well as placed printlns to check everything. The code is able to sort the array but for some reason right before it can return the result it will call sort again even though it isn't a recursive method.
If the image helps, it shows that it got sorted displaying the final array. After checkpoint 5 it is supposed to return the result. But as you can see it goes back to checkpoint 1. I honestly have no idea what's happening.
https://github.com/brendacano/dsa-java/blob/master/src/main/java/edu/emory/cs/sort/hybrid/HybridSortHW.java
I was debugging my code as well as placed printlns to check everything. The code is able to sort the array but for some reason right before it can return the result it will call sort again even though it isn't a recursive method.
If the image helps, it shows that it got sorted displaying the final array. After checkpoint 5 it is supposed to return the result. But as you can see it goes back to checkpoint 1. I honestly have no idea what's happening.