5 ms·
Python powerset() with max(), list.remove(), and sum() builtins made the last problem's solution ~5 lines long :)
by temugen 16y ago
Python powerset() with max(), list.remove(), and sum() builtins made the last problem's solution ~5 lines long :)
- brandon 16y agoI don't know about powerset(), but challenge 3 was pretty trivial using Python's itertools module: http://gist.github.com/617663 http://gist.github.com/617663 (warning: spoilers)