advent_of_code_2022.git
22 months agoTypo
Greg Burri [Thu, 15 Dec 2022 00:01:51 +0000 (01:01 +0100)]
Typo

22 months agoReduce matrix height to 200
Greg Burri [Wed, 14 Dec 2022 10:30:22 +0000 (11:30 +0100)]
Reduce matrix height to 200

22 months agoTime formatting.
Greg Burri [Wed, 14 Dec 2022 10:14:27 +0000 (11:14 +0100)]
Time formatting.
Display more digits when formatting time in ms and s

22 months agoReplace HashSet by an array for a 10x speed up
Greg Burri [Wed, 14 Dec 2022 10:06:20 +0000 (11:06 +0100)]
Replace HashSet by an array for a 10x speed up

22 months agoDay 14
Greg Burri [Wed, 14 Dec 2022 09:36:47 +0000 (10:36 +0100)]
Day 14

22 months agoSimplify
Greg Burri [Tue, 13 Dec 2022 17:54:45 +0000 (18:54 +0100)]
Simplify

22 months agoSimplify
Greg Burri [Tue, 13 Dec 2022 15:39:13 +0000 (16:39 +0100)]
Simplify
Inspired by https://github.com/AjaxGb/advent-2022/blob/master/src/day13/main.rs

22 months agoClean up
Greg Burri [Tue, 13 Dec 2022 15:15:41 +0000 (16:15 +0100)]
Clean up

22 months agoUse Clap for arguments parsing
Greg Burri [Tue, 13 Dec 2022 15:13:26 +0000 (16:13 +0100)]
Use Clap for arguments parsing
Add a -p for processing all days in parallel

22 months agoTry to speed up day 5
Greg Burri [Tue, 13 Dec 2022 15:12:39 +0000 (16:12 +0100)]
Try to speed up day 5

22 months agoDay 13
Greg Burri [Tue, 13 Dec 2022 15:12:28 +0000 (16:12 +0100)]
Day 13

22 months agoReduce time to do day 11:
Greg Burri [Mon, 12 Dec 2022 23:03:29 +0000 (00:03 +0100)]
Reduce time to do day 11:
~13ms -> ~8ms

22 months agoBetter formatting (using rustfmt)
Greg Burri [Mon, 12 Dec 2022 10:49:02 +0000 (11:49 +0100)]
Better formatting (using rustfmt)

22 months agolittle simplification
Greg Burri [Mon, 12 Dec 2022 10:04:45 +0000 (11:04 +0100)]
little simplification

22 months agoDon't need to push visited position twice...
Greg Burri [Mon, 12 Dec 2022 09:47:58 +0000 (10:47 +0100)]
Don't need to push visited position twice...

22 months agoDay 12
Greg Burri [Mon, 12 Dec 2022 09:30:23 +0000 (10:30 +0100)]
Day 12

22 months agoSimplification
Greg Burri [Sun, 11 Dec 2022 12:21:42 +0000 (13:21 +0100)]
Simplification

22 months agoDay 11
Greg Burri [Sun, 11 Dec 2022 11:25:32 +0000 (12:25 +0100)]
Day 11

22 months agoDay 10
Greg Burri [Sat, 10 Dec 2022 09:36:57 +0000 (10:36 +0100)]
Day 10

22 months agoSimplification
Greg Burri [Fri, 9 Dec 2022 15:39:58 +0000 (16:39 +0100)]
Simplification

22 months agoA bit more readable
Greg Burri [Fri, 9 Dec 2022 13:32:17 +0000 (14:32 +0100)]
A bit more readable

22 months agoSimplification
Greg Burri [Fri, 9 Dec 2022 13:26:43 +0000 (14:26 +0100)]
Simplification

22 months agoDay[9]
Greg Burri [Fri, 9 Dec 2022 13:10:28 +0000 (14:10 +0100)]
Day[9]

22 months agoDay 8
Greg Burri [Thu, 8 Dec 2022 20:02:15 +0000 (21:02 +0100)]
Day 8

22 months agoClean up: factorize input test
Greg Burri [Wed, 7 Dec 2022 23:04:06 +0000 (00:04 +0100)]
Clean up: factorize input test

22 months agoDay 7
Greg Burri [Wed, 7 Dec 2022 22:38:59 +0000 (23:38 +0100)]
Day 7

22 months agoDay 6
Greg Burri [Tue, 6 Dec 2022 12:29:37 +0000 (13:29 +0100)]
Day 6

22 months agoSimplify and improve performance
Greg Burri [Mon, 5 Dec 2022 15:13:51 +0000 (16:13 +0100)]
Simplify and improve performance

22 months agoSimplify 'day05::get_top_as_string'
Greg Burri [Mon, 5 Dec 2022 11:21:00 +0000 (12:21 +0100)]
Simplify 'day05::get_top_as_string'

22 months agoRemove useless function
Greg Burri [Mon, 5 Dec 2022 11:09:28 +0000 (12:09 +0100)]
Remove useless function

22 months agoDay 5
Greg Burri [Mon, 5 Dec 2022 11:09:19 +0000 (12:09 +0100)]
Day 5

22 months agoDay 4
Greg Burri [Sun, 4 Dec 2022 18:02:40 +0000 (19:02 +0100)]
Day 4

22 months agoRemove useless imports
Greg Burri [Sat, 3 Dec 2022 18:18:15 +0000 (19:18 +0100)]
Remove useless imports

22 months agoAdd a parsing function to simplify the process
Greg Burri [Sat, 3 Dec 2022 18:15:15 +0000 (19:15 +0100)]
Add a parsing function to simplify the process

22 months agoRemove useless import
Greg Burri [Sat, 3 Dec 2022 16:14:53 +0000 (17:14 +0100)]
Remove useless import

22 months agoDay 3
Greg Burri [Sat, 3 Dec 2022 16:05:01 +0000 (17:05 +0100)]
Day 3

22 months agoDay 2
Greg Burri [Fri, 2 Dec 2022 20:32:15 +0000 (21:32 +0100)]
Day 2

23 months agoUse Reverse + k_smallest (code simplification)
Greg Burri [Thu, 1 Dec 2022 23:31:53 +0000 (00:31 +0100)]
Use Reverse + k_smallest (code simplification)

23 months agoDay 1
Greg Burri [Thu, 1 Dec 2022 22:41:18 +0000 (23:41 +0100)]
Day 1