Stephen Waits
e311dbaddb
actually run day 18 solution
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-24 09:52:43 -10:00
Stephen Waits
d0986b6f61
day 18 solutions
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-24 09:40:10 -10:00
Stephen Waits
90a766296b
remove lazy_static for OnceCell’s Lazy<>
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-24 09:38:50 -10:00
Stephen Waits
39746c982c
cleanup many clippy pedantic warnings
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-16 13:51:35 -08:00
Stephen Waits
2a13ede1c4
day 16 hackfest
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-16 00:15:29 -08:00
Stephen Waits
71a46593ba
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 >
2020-12-15 13:58:14 -08:00
Stephen Waits
9fb4f0de7c
minor day 15 cleanup
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-15 10:34:37 -08:00
Stephen Waits
a10114640a
day 15 - use the right data structure (HashMap, not BTreeMap)
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-15 07:47:29 -08:00
Stephen Waits
cd1f769de9
day 15 solutions (brute force, slow)
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-15 07:44:57 -08:00
Stephen Waits
e56dff5a12
day 14 solutions
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-14 23:06:50 -08:00
Stephen Waits
aa332efa20
another minor (clippy) cleanup
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-12 20:57:21 -08:00
Stephen Waits
90b94fa805
nicer times()
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-12 07:24:40 -08:00
Stephen Waits
8fb67d653c
more cleanup
...
- fix all clippy warnings
- add times(n: usize) iterator
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-12 07:10:10 -08:00
Stephen Waits
16670f26a5
condense day 12 by combining pattern match arms
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-12 06:22:43 -08:00
Stephen Waits
9269a60cde
day 12 solutions
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-11 21:56:22 -08:00
Stephen Waits
fd7dba3c98
minor cleanups
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-11 14:22:49 -08:00
Stephen Waits
d961e44681
day 11 solutions
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-11 14:18:52 -08:00
Stephen Waits
a4642115df
day 10 solutions
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-10 21:38:13 -08:00
Stephen Waits
1124818641
day 9: minor cleanup
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-10 17:59:49 -08:00
Stephen Waits
214383a0f3
day 9 solutions
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-10 10:17:14 -08:00
Stephen Waits
c617dfb8e8
day 8 part 2 solution
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-10 08:13:19 -08:00
Stephen Waits
7caf5dc27a
day 8 part 1 solution
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-09 21:14:03 -08:00
Stephen Waits
acd90a85ac
day 7 comment fix
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-09 19:55:52 -08:00
Stephen Waits
fd309fe709
day 7 part 2 solution
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-09 19:52:55 -08:00
Stephen Waits
be6253e53f
day 7 part 1 solution
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-09 19:17:36 -08:00
Stephen Waits
0e2f1c1afa
day 6 formatting cleanup
...
Signed-off-by: Stephen Waits <swaits@amazon.com >
2020-12-07 14:53:55 -08:00
Stephen Waits
8ff5d6dd12
and remove the copypasta fml
2020-12-05 22:07:07 -08:00
Stephen Waits
b33db9cb95
minor day 6 golfing
2020-12-05 22:05:49 -08:00
Stephen Waits
0bd288d390
day 6 solutions
2020-12-05 21:47:17 -08:00
Stephen Waits
29dee21cde
day 5 solution
2020-12-04 22:34:06 -08:00
Stephen Waits
a4558e6e80
day 4 solution
2020-12-04 14:18:37 -08:00
Stephen Waits
069173f036
typo fix
2020-12-02 22:34:29 -08:00
Stephen Waits
3ab5c7926d
minor cleanup on day1, use Iterator::sum/product
2020-12-02 22:28:38 -08:00
Stephen Waits
86ac6625de
misc cleanup, minor readability fix, cargo clippy
2020-12-02 22:22:55 -08:00
Stephen Waits
b217f3a5dd
whitespace fix in README.md
2020-12-02 22:15:00 -08:00
Stephen Waits
8a7f205419
day 3 solutions
2020-12-02 22:14:31 -08:00
Stephen Waits
3aa216c806
add Knuth algorithm for combinations as Iterator
2020-12-02 19:19:01 -08:00
Stephen Waits
01b4123dd3
add LICENSE and README.md
2020-12-02 15:32:09 -08:00
Stephen Waits
71e7c5e90d
initial commit, includes days 1 and 2 solutions
2020-12-02 15:21:56 -08:00