logo       

Solution tester for [Perl 'Medium' QOTW - Tournament Schedule]: msg#00010

lang.perl.qotw.discuss

Subject: Solution tester for [Perl 'Medium' QOTW - Tournament Schedule]

Attached is a quick-and-dirty, and highly ugly, solution verifyer for
this problem. I've used it to verify that 2 out of the 3 solutions
posted so far are correct - one I had to translate into perl and out
of ruby first, but that was pretty easy. (And in fact, I'm now
ashamed at how convoluted, long and ugly my solution is, but oh well)

To run it, just do:

perl checkit.pl my_perl_file.pl

If you want to specify that it should only check certain values
(e.g. selected powers of two), just do:

perl checkit.pl my_perl_file.pl allocate_schedule 2 4 8 16 32 64 128

If you called your subroutine something other than
'allocate_schedule', then give that as the second argument.

Attachment: checkit.pl
Description: qotw solution checker

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise