1
votes

So here I am, starting my journey through coding, was working on Merge Sort after learning but got stuck on a problem. See, I've implemented the merge sort algorithm. When I try to print the list from the method, it prints a sorted one. But as soon as I try to print the original list which was passed to the method which actually needs to be sorted. It doesn't. It still remains unsorted.

So, was hoping if anyone could help me. I can't put the code since it's my college project.

Thanks!

The duplicate link should answer your question. However, next time, please provide your code you have trouble with, instead of trying to describe what you are doing with words. (See How to Ask for more information) - maloomeister