I got a link to the Vietnamese Pesky Snake math problem from my wife. (http://m.db.no/2015/05/21/nyheter/utenriks/matematikk/oppgave/39292707/) And as a programmer, I couldn’t really sit there and solve it with my bare hands. Ok, I admit it’s fun to solve math problems, but this was very much looking like a problem with more than one solution, and I needed to know for sure 🙂

So I created a little program in perl to solve this. It’s located at gist: https://gist.github.com/flogvit/ba6e984236f9b4e08c10

And for those wondering, yes, it had several solutions, actually 128 of them.

%d bloggers like this: