02/

directory
v0.0.0-...-514b974 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: CC0-1.0

README

Day 2

Part 1

example.txt should output 58

The formula for calculating the slack is the product of the two smallest dimensions:

smallest dimension * second smallest dimension

Part 2

example.txt should output 34

The ribbon needs to only wrap it around four sides, so use the smallest two dimensions:

2x3x4: 2 + 2 + 3 + 3 = 10

then we need to make the bow which is just the product of all dimensions:

2x3x4: 2 * 3 * 4 = 24

Square prism

Image source

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL