Algorithm: combinations of (k) taken from (n) values

Darrell darrell at dorb.com
Sun Apr 9 01:31:29 EDT 2000


I wrote:
> Is it possible to figure out a combination at some huge offset without
> figuring out all previous combinations?
Now I see how, but it will take some work.
And I don't know if such a thing would be useful.

> print 'getslice:', choices[40:50]

Yelp that's out of range.

--Darrell







More information about the Python-list mailing list