in reply to Re: Coding Challenge: Find 6 sided polygon covering 4x4 grid
in thread Coding Challenge: Find 6 sided polygon covering 4x4 grid
But it's not solved yet: the challenge had three levels and you solved the easiest one.
And that to a very high cost. (75 min? Wow)
You seem to think that the vertices of the chain have to be at integer positions. (?)
That's not the case and crippling your solutions.
For the records:
Level 2: there is at least one solution with a real i.e. closed polygon! Or maybe more than one?
Level 3: what if the grid is bigger 5x5, 6x6 or even 6x5?
There doesn't seem to be much interest though and it might be a bit too challenging on the math level.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|