NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Is this it? (Score:2)
Re:Is this it? (Score:2)
Nope, not even close :) That tiny spec bears close rereading. For example, "using each of the digits 1 to 9" for 3-digit numbers means your first grep is off.
I also used &List::MoreUtils::uniq to pre-trim that list (since duplicate numbers are not allowed).
Basically, you'll need a three stage process (I think). First, generate your candidate list. Second, find all three digit numbers which satisfy the reverse divisor requirement. Then construct your final list of three triples.
And though I thought I had matched dakkar's results above, I actually have three numbers for 9 :(
Reply to This
Parent
Re: (Score:1)