mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Off-by-one error
This commit is contained in:
@@ -23,7 +23,7 @@ impl Solution for Day05 {
|
||||
}
|
||||
|
||||
fn part2(&mut self, input: &mut dyn Read) -> String {
|
||||
let mut taken = [false; 0x3ff];
|
||||
let mut taken = [false; 0x400];
|
||||
|
||||
for seat_id in seat_iter(input) {
|
||||
taken[seat_id as usize] = true;
|
||||
|
||||
Reference in New Issue
Block a user