The Rosetta Code Blog this week mentioned that entries starting with a K were missing so I reviewed my sources and added a knapsack type problem to RC together with the python solution.
It's not the first time that I've remembered that itertools.product can do arbitrary nested for loops. Before, I would have had to employ recursive function calls.
Mainly Tech projects on Python and Electronic Design Automation.
- ► 2013 (14)
- ► 2010 (12)
- ► 2009 (42)
- ▼ December (4)
- ► 2007 (23)