pub struct Day09 { /* private fields */ }
Expand description
2015 Day 9: Finding the shortest and longest path.
Traverse each route from the first location, adding on the edge from the last location back to the first location to find the shortest/longest loop. The shortest/longest route starting and ending at different locations is then the shortest/longest loop minus the longest/shortest edge.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Day09
impl RefUnwindSafe for Day09
impl Send for Day09
impl Sync for Day09
impl Unpin for Day09
impl UnwindSafe for Day09
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