Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Please provide the code and set of data. If C++ is 100x faster than Python this might not always be the case.


Down 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: