![]() |
|
go ahead... be a heretic | |
PerlMonks |
Perl Weekly Challenge 206 with List::Utilby LanX (Sage) |
on Mar 17, 2023 at 11:28 UTC ( #11151022=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Hi I stumbled over some blog posts choosing brute-forc'ish algos to solve the perl-weekly-challenge-206. Here my take on it ... (I hid the "spoilers") I hope my approaches are clever solutions, please correct me otherwise. But I'm not too fond of my approach with List::Util::reduce() for task1. It's a hack to process successive pairs instead of even pairs.( 1-2 than 2-3 vs 3-4 ) Is there a more elegant way to do it with a function from List::Util ? BTW: Generating the tests from the POD is nice too. :)
<Reveal this spoiler or all in this thread>
Cheers Rolf
Back to
Seekers of Perl Wisdom
|
|