Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: One for the weekend: challenge

by Limbic~Region (Chancellor)
on Jun 01, 2008 at 13:34 UTC ( #689555=note: print w/ replies, xml ) Need Help??


in reply to Re^2: One for the weekend: challenge
in thread One for the weekend: challenge

BrowserUk,
I also read the rules incorrectly because of the following example:

04824: 0 Torf 04824: 0 fort 04824: 0 Tor 4
The last solution is what lead me astray. If it had read:

As you work left to right, if at any point a word can be inserted - using a digit is illegal and at no point can two digits be adjacent

I would have understood much better. In any event, my solution is buggy and produces incorrect results. Since it seems like you were after approaches, I believe mine is interesting because of the unrestricted integer partitions. I have no interest at this point in making it a correct solution.

Cheers - L~R


Comment on Re^3: One for the weekend: challenge
Download Code
Re^4: One for the weekend: challenge
by BrowserUk (Pope) on Jun 01, 2008 at 14:06 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://689555]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (18)
As of 2015-07-07 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls