News for hackers. Stuff that matters.
Re:Which answer in this list is the correct answer to this q... by dmurray on Friday November 15, 2019 @05:44AM (#21543841)
The second answer is a C program. It specifies the constraints and loops over all the possible solutions. That's the most naive constraint solver possible, but adequate for this task.

Once you put in the effort of translating the problem into constraints, the Prolog solution is trivial, because the Prolog compiler is a constraint solver.

There are no comments on this comment yet.