Standard Forth versus Python: a case study
Terry Reedy
tjreedy at udel.edu
Wed Oct 11 23:20:04 EDT 2006
<idknow at gmail.com> wrote in message
news:1160619958.438049.53390 at h48g2000cwc.googlegroups.com...
> bearophileHUGS at lycos.com wrote:
> no sort() is needed to calculate the median of a list.
> you just need one temp var.
Of course. But for a short enough list, the builtin sort() method may be
faster than an O(n) algorithm coded in Python. And .sort() is already
present.
tjr
More information about the Python-list
mailing list