fixup! Complete day 5.1
This commit is contained in:
parent
647ca9c048
commit
9ce494d427
|
@ -67,7 +67,7 @@ fn find_seat(code: SeatCode) -> (usize, usize) {
|
|||
};
|
||||
|
||||
let row = code[..7].iter().fold((0, 127), binary_follow).0;
|
||||
let col = code[7..].iter().take(3).fold((0, 7), binary_follow).0;
|
||||
let col = code[7..].iter().fold((0, 7), binary_follow).0;
|
||||
|
||||
(row, col)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue