3 ms·
Please provide the code and set of data. If C++ is 100x faster than Python this might not always be the case.
by melling 15y ago
Please provide the code and set of data. If C++ is 100x faster than Python this might not always be the case.
- melling 15y agoDown voted because people think Quicksort always wins in Python vs. a Bubble sort in C++? Wish I had time to find a case where that's not true. I'll point out that in the worst case, Quicksort is O(n^2). http://en.wikipedia.org/wiki/Sorting_algorithm#Quicksort http://en.wikipedia.org/wiki/Sorting_algorithm#Quicksort