diff options
| author | Andinus <andinus@nand.sh> | 2020-10-05 19:09:44 +0530 |
|---|---|---|
| committer | Andinus <andinus@nand.sh> | 2020-10-05 19:19:53 +0530 |
| commit | 8f3850631f6054243b24a1795147f0abc23193de (patch) | |
| tree | d5f4511d5a44f203c02c89b67b58963240769265 /challenge-059 | |
| parent | 84ac3a3dadb3b8c522696ccd4c245cc1de557772 (diff) | |
| download | perlweeklychallenge-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')
0 files changed, 0 insertions, 0 deletions
