stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-...

Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster:

include <algorithm>

include <ctime>


Comments (0)

Sign in to post comments.