Coolest Python recipe of all time

Raymond Hettinger python at rcn.com
Sat May 7 17:02:10 EDT 2011


On May 7, 1:29 am, Steven D'Aprano <steve
+comp.lang.pyt... at pearwood.info> wrote:
> On Fri, 06 May 2011 12:36:09 -0600, Ian Kelly wrote:
> > The amb engine would conceptually execute this function for every
> > possible combination of a, b, and c,
>
> Which pretty much is the definition of "brute-force solver", no?

FWIW, here's one of my favorite brute-force solvers:

   http://code.activestate.com/recipes/576615-alphametics-solver/


Raymond

-------
follow my recipes and tips on twitter:  @raymondh




More information about the Python-list mailing list