![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re: The 15 Puzzleby Eily (Monsignor) |
on Jun 11, 2020 at 12:23 UTC ( #11117940=note: print w/replies, xml ) | Need Help?? |
++ For your code. It's quite readable as well despite being dense IMHO. About the number of permutations, rather than a loop wouldn't it be simpler to just have: @board[1,2] = @board[2,1] if $inversions %2; ?
In Section
Cool Uses for Perl
|
|