wip
Alpha Chen 9 years ago
parent 97b34cd57a
commit 7420c8a9d8

@ -17,7 +17,7 @@ impl Day for Day01 {
fn solve(self) -> Result<i32, Error> {
let elevator = Elevator::new(self.input);
Ok(elevator.run().last().unwrap_or(0))
Ok(1 + elevator.run().position(|f| f == -1).unwrap_or(0) as i32)
}
}

Loading…
Cancel
Save