pub struct Day18 { /* private fields */ }Expand description
2019 Day 18: Finding the shortest path to collect every key.
The key optimization is to precompute the distance between all entrances and keys, along with the keys required to travel each path. This allows the final search to only track each robot’s position and which keys remain.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Day18
impl RefUnwindSafe for Day18
impl Send for Day18
impl Sync for Day18
impl Unpin for Day18
impl UnsafeUnpin for Day18
impl UnwindSafe for Day18
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more