efficient idiomatic queue?
eppstein at ics.uci.edu
Tue Jan 15 08:04:59 CET 2002
In article <7xpu4cglp3.fsf at ruckus.brouhaha.com>,
Paul Rubin <phr-n2002a at nightsong.com> wrote:
> How's this (untested; uses nested scopes). It uses extra temp space
> the size of the input, but runs in the correct order time.
Sure, that looks like the straightforward way of doing it using index
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list