Kaydet (Commit) b298a300 authored tarafından Guido van Rossum's avatar Guido van Rossum

Reduce memory requirements.

üst e34ab30a
......@@ -90,8 +90,11 @@ def tabulate(r):
doit(L) # \sort
doit(L) # /sort
if n > 4:
L = map(operator.neg, map(operator.neg, L[:4]*(n/4)))
del L[4:]
L = L*(n/4)
L = map(lambda x: --x, L)
doit(L) # ~sort
del L
L = map(abs, [-0.5]*n)
doit(L) # -sort
print
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment