aboutsummaryrefslogtreecommitdiff
path: root/challenge-059/khalid
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-10-05 19:09:44 +0530
committerAndinus <andinus@nand.sh>2020-10-05 19:19:53 +0530
commit8f3850631f6054243b24a1795147f0abc23193de (patch)
treed5f4511d5a44f203c02c89b67b58963240769265 /challenge-059/khalid
parent84ac3a3dadb3b8c522696ccd4c245cc1de557772 (diff)
downloadperlweeklychallenge-club-8f3850631f6054243b24a1795147f0abc23193de.tar.gz
perlweeklychallenge-club-8f3850631f6054243b24a1795147f0abc23193de.tar.bz2
perlweeklychallenge-club-8f3850631f6054243b24a1795147f0abc23193de.zip
challenge-080 ch-1.pl: Fix logical error
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.
Diffstat (limited to 'challenge-059/khalid')
0 files changed, 0 insertions, 0 deletions