pub struct Day12 { /* private fields */ }Expand description
2025 Day 12: Checking region sizes.
The solution assumes that each present shape can be treated as a solid 3x3 square. This makes the implementation trivial and much faster than a general solution to 2D bin packing (which is NP-complete).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Day12
impl RefUnwindSafe for Day12
impl Send for Day12
impl Sync for Day12
impl Unpin for Day12
impl UnwindSafe for Day12
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