Chaining comparisons and assumed uniqueness
snoyes opened this issue · comments
pytudes/ipynb/Advent-2020.ipynb
Line 104 in 994d790
pytudes/ipynb/Advent-2020.ipynb
Line 110 in 994d790
The puzzle description doesn't guarantee that each entry is unique; it's possible that a report contains the entry 1010 twice.
pytudes/ipynb/Advent-2020.ipynb
Line 123 in 994d790
If we want to find unique entries anyway, this comparison chain does not preclude x == y. Perhaps use
x < y < z
?