My own accounting python euler problem
MRAB
python at mrabarnett.plus.com
Tue Nov 10 17:08:13 CET 2009
Gerry wrote:
> On Nov 8, 2:42 pm, Ozz <notva... at wathever.com> wrote:
>> vsoler schreef:
>>
> And, of course, you'd want to take a look a this: http://xkcd.com/287/
>
I've found 2 solutions.
(And I really should get back to what I was doing...)
> Gerry
>>> Instead of subsets, do you mean permutations/combinations? Since 2
>>> invoices can have the same amount perhaps the terms permutation is
>>> better.
>> As some other poster already suggested 'powerset' (http://en.wikipedia.org/wiki/Power_set) may be a better name, except
>> for those duplicates, of course. On the other hand, I think viewing it
>> as a powerset is the most 'natural' in this case. (imo permutations are
>> about the order of objects, not about whether the objects are included
>> in a set or not)
>>
>> cheers,
>> Ozz
>
More information about the Python-list
mailing list