Skip to main content

Timeline for In-Place Quicksort in Python

Current License: CC BY-SA 3.0

2 events
when toggle format what by license comment
Aug 1, 2013 at 22:56 comment added flornquake xrange is not only more efficient than range memory-wise, it's also quite a bit faster when all you want to do is loop over a range of numbers. As for the lower and upper variables, I think it is perfectly fine to assign them, even if you only use them once. Giving the values a name makes it immediately obvious what the piece of code is doing (imo it is even more readable than an explanatory comment would be).
Aug 1, 2013 at 9:30 history answered Aseem Bansal CC BY-SA 3.0