Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Matrix Formationby artist (Parson) |
on Jun 17, 2003 at 20:45 UTC ( [id://266641]=note: print w/replies, xml ) | Need Help?? |
Various comments so far: 1.Antirice asked if I can repeat the numbers: Answer is yes: ie.. [ [1,2],[4,2]] is allowed. 2. pzbagel: In mentioning of next if $n =~ /0\d+/;. \d+ was necessary to because I just don't wanted the formed-numbers that begins with 0. Anywhere else 0 in the number is fine. For 2x2 matrix this should work fine. 3. I like Rhose's appraoch as initiated by CountZero. 4. Other apporach:, Start forming matrix starting from the highest divisor. 4. Few other related challanges are
In Section
Seekers of Perl Wisdom
|
|