pub struct Day11 { /* private fields */ }
Expand description
2016 Day 11: Minimizing steps to safely rearrange generators and microchips.
The key optimization is that states are equivalent if swapping the positions of generator-microchip pairs would make them equal.
Additionally, work out which generators/microchips are safe to move, instead of wasting time checking if states are valid.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Day11
impl RefUnwindSafe for Day11
impl Send for Day11
impl Sync for Day11
impl Unpin for Day11
impl UnwindSafe for Day11
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)