10000
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
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>
#include <iostream>
int main()
{
// Generate data
const unsigned arraySize = 32768;
int data[arr...