Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 24339

Re: Sort an array - find the best way!

$
0
0

The recursive function to do merge sort in the previous attached should be ok. I found a non-recursive one to do the same, see mergeSort_nonRecursive() in attached. Not so sure which one works faster. Personally I prefer non-recursive implementation since it is easier to read. Let me know what you think.


Viewing all articles
Browse latest Browse all 24339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>