Problem 3-way merge sorting strings in C#

People are downvoting your question because it looks like you are trying to offload task that was given to you to StackOverflow, this is not what this site is for. Here’s what I would recommend :

1 figure out how does the code for integers work. This is essential step. It may be hard to do; so maybe you want to start with easier algorithms. Read on bubble sort, write bubble sort for integers, write bubble sort for strings, examine the difference.

2 Debug the code that you have for integers. Do you understand what every line does and what would happen if you removed it? Do you understand what every variable is for? Do you understand why particular variable has specific value at a given time during runtime?

After completing those two steps you should be able to change the code to work with strings instead of integers without an issue.

Browse More Popular Posts

Leave a Comment