DEV Community

Discussion on: Advent of Code: 2020 Day 04

Collapse
 
andrewharpin profile image
Andrew Harpin

There's a flaw in your part 1, it assumes the last entry is invalid.

There is no new line at the EOF, so the last entry is not evaluated by your code.