~swaits/aoc2020

e311dbad — Stephen Waits 2 years ago mainline
actually run day 18 solution

Signed-off-by: Stephen Waits <swaits@amazon.com>
d0986b6f — Stephen Waits 2 years ago
day 18 solutions

Signed-off-by: Stephen Waits <swaits@amazon.com>
90a76629 — Stephen Waits 2 years ago
remove lazy_static for OnceCell’s Lazy<>

Signed-off-by: Stephen Waits <swaits@amazon.com>
39746c98 — Stephen Waits 2 years ago
cleanup many clippy pedantic warnings

Signed-off-by: Stephen Waits <swaits@amazon.com>
2a13ede1 — Stephen Waits 2 years ago
day 16 hackfest

Signed-off-by: Stephen Waits <swaits@amazon.com>
71a46593 — Stephen Waits 2 years ago
day 13 solution **after hints!**

Attempted a brute force solution.

After letting my i9 churn on it across all cores and hyperthreads for ~4 days, looked online and learned about Chinese Remainder Theorem. Applied code from Rosetta Code and success.

Signed-off-by: Stephen Waits <swaits@amazon.com>
9fb4f0de — Stephen Waits 2 years ago
minor day 15 cleanup

Signed-off-by: Stephen Waits <swaits@amazon.com>
a1011464 — Stephen Waits 2 years ago
day 15 - use the right data structure (HashMap, not BTreeMap)

Signed-off-by: Stephen Waits <swaits@amazon.com>
cd1f769d — Stephen Waits 2 years ago
day 15 solutions (brute force, slow)

Signed-off-by: Stephen Waits <swaits@amazon.com>
e56dff5a — Stephen Waits 2 years ago
day 14 solutions

Signed-off-by: Stephen Waits <swaits@amazon.com>
aa332efa — Stephen Waits 2 years ago
another minor (clippy) cleanup

Signed-off-by: Stephen Waits <swaits@amazon.com>
90b94fa8 — Stephen Waits 2 years ago
nicer times()

Signed-off-by: Stephen Waits <swaits@amazon.com>
8fb67d65 — Stephen Waits 2 years ago
more cleanup

- fix all clippy warnings
- add times(n: usize) iterator

Signed-off-by: Stephen Waits <swaits@amazon.com>
16670f26 — Stephen Waits 2 years ago
condense day 12 by combining pattern match arms

Signed-off-by: Stephen Waits <swaits@amazon.com>
9269a60c — Stephen Waits 2 years ago
day 12 solutions

Signed-off-by: Stephen Waits <swaits@amazon.com>
fd7dba3c — Stephen Waits 2 years ago
minor cleanups

Signed-off-by: Stephen Waits <swaits@amazon.com>
d961e446 — Stephen Waits 2 years ago
day 11 solutions

Signed-off-by: Stephen Waits <swaits@amazon.com>
a4642115 — Stephen Waits 2 years ago
day 10 solutions

Signed-off-by: Stephen Waits <swaits@amazon.com>
11248186 — Stephen Waits 2 years ago
day 9: minor cleanup

Signed-off-by: Stephen Waits <swaits@amazon.com>
214383a0 — Stephen Waits 2 years ago
day 9 solutions

Signed-off-by: Stephen Waits <swaits@amazon.com>
Next