Skip to content

Instantly share code, notes, and snippets.

@danlark1
Created Apr 4, 2022
Embed
What would you like to do?
original_stl_comparisons
int main(int argc, char** argv) {
std::cout << "N: comparisons\n";
for (int i = 100; i <= 6400; i *= 2) {
std::cout << i << ": " << quadratic(i) << "\n";
}
return 0;
}
/*
N: comparisons
100: 2773
200: 10623
400: 41323
800: 162723
1600: 645523
3200: 2571123
6400: 10262323
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment