Notice: Trying to access array offset on value of type bool in /home/customer/www/ on line 2442
Solution to Vietnamese pesky snake in #perl | Flogvit

I got a link to the Vietnamese Pesky Snake math problem from my wife. ( 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:

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

%d bloggers like this: