aboutsummaryrefslogtreecommitdiff
path: root/challenge-080/andinus/perl
AgeCommit message (Collapse)Author
2020-10-06Fix bug on challenge-080 ch-1, compact challenge-081 ch-2Andinus
This fixes the bug in challenge-080 ch-1 where repeated elements would break the code & removes a useless line in challenge-081 ch-2.
2020-10-05challenge-080 ch-1.pl: Fix logical errorAndinus
It didn't check for =1=, I might have assumed that it was accounted for in this line: print "1\n" and exit 0 if $sorted[$#sorted] < 1; This was pointed out by <https://octodon.social/@polettix> <https://tilde.zone/web/statuses/104981669595493301#> I also discovered that it'll fail if the inputs are not unique, this can be fixed by using hash & map somehow. Maybe I'll fix it later someday.
2020-09-29Add challenge-080's ch-1, ch-2 solution in PerlAndinus