[][src]Crate day1

Advent of Code 2020: Day 1 Matt Traudt (pastly) License: WTFPL

See the function-specific documentation for information on how this works. The main idea is in find_two_with_sum.

Constants

MAIN_TARGET

Functions

find_two_with_sum

Find two ints in the given slice that sum to the given target. If none do so, return None.

main
part_one

Part 1 challenge is to find two ints in a list that sum to the target, and produce as the answer their product.

part_two

Like Part 1, but with three ints.