Ask your own question, for FREE!
Mathematics 8 Online
OpenStudy (anonymous):

I've coded mergesort() in python... but it's slow and has takes 20 seconds to sort an array of a million 32-bit integers in reversed order back to ascending order. How do I optimize my sorting code?

OpenStudy (anonymous):

for comparison... the native (tim)sort algorithm takes 0.04 seconds to sort a million 32-bit integers worst case

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!