Module day03

Source
Expand description

§Binary Diagnostic

Part 1 uses bit manipulation to build up the binary numbers directly one digit at a time.

Part 2 clones the input vec then uses retain to efficiently discard numbers that don’t meet the criteria.

Functions§

ones 🔒
parse
part1
part2
rating 🔒