Hello,
I got below quicksort code from one of the online forums. What i observed was entire sort is fine except the middle (pivot) value. It did an extra swap which spoiled the output. Can someone please fix this code for me?
I actually need to sort a string array which includes numbers as well. Can someone please make below code suitable for string comparison as well?
Sort output
30422931250
30422936060
30439815220
767329405210
767355886950
767351008940
767428295340
767456457710
767434830870
Thanks in advance
Bookmarks