advent_of_code_2022.git
23 months agoDay 18 part 2 master
Greg Burri [Sat, 24 Dec 2022 13:50:34 +0000 (14:50 +0100)]
Day 18 part 2

23 months agoDay 18 part 1
Greg Burri [Sat, 24 Dec 2022 00:30:57 +0000 (01:30 +0100)]
Day 18 part 1

23 months agoDay 17 part 2
Greg Burri [Fri, 23 Dec 2022 19:16:48 +0000 (20:16 +0100)]
Day 17 part 2

23 months agoDay 17 part 1
Greg Burri [Thu, 22 Dec 2022 19:52:44 +0000 (20:52 +0100)]
Day 17 part 1

23 months agoUse Floyd-Warshall algorithm
Greg Burri [Thu, 22 Dec 2022 13:50:53 +0000 (14:50 +0100)]
Use Floyd-Warshall algorithm

23 months agoDay 16 part 2
Greg Burri [Thu, 22 Dec 2022 01:32:25 +0000 (02:32 +0100)]
Day 16 part 2

23 months agoDay 16 part 1
Greg Burri [Fri, 16 Dec 2022 15:04:32 +0000 (16:04 +0100)]
Day 16 part 1

23 months agoDay 15
Greg Burri [Thu, 15 Dec 2022 17:05:06 +0000 (18:05 +0100)]
Day 15

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

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

23 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

23 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

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

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

23 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

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

23 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

23 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

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

23 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

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

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

23 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...

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

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

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

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

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

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

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

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

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

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

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

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

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

23 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'

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

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

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

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

23 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

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

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

23 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