Commit Graph

10 Commits

Author SHA1 Message Date
MasterofJOKers f083a70ae5 day05: Changes for part 2
I feel like there should be away for me to read from the back and move
things over directly instead of having a temporary Vec for it, but I'm
not sure how this would work with the owner-checking, so I didn't try.
2022-12-18 18:31:23 +01:00
MasterofJOKers 152773a0a9 day05: Implement part 1 2022-12-18 18:26:03 +01:00
MasterofJOKers 93e88b94b7 day04: Change implementation for part 2
This will print all overlapping ranges instead of only fully contained
ranges.
2022-12-18 16:55:34 +01:00
MasterofJOKers 57b95e8c2c day04: Add part 1
I'm not sure why this is so much to write. It feels like there should be
a more generic way to check this instead of duplicating those lines, but
maybe it's not worth it for 2 ranges ...
2022-12-18 16:52:45 +01:00
MasterofJOKers 6dfb583345 day03: Make it solve part 2 instead 2022-12-16 18:50:29 +01:00
MasterofJOKers 55038c87da day03: Add part 1 solution 2022-12-16 18:33:33 +01:00
MasterofJOKers 7b82a1f46b day02: Add part 2
I suspect there must be a better way which could present this more
generically e.g. if I could iterate over the enum somehow ...
2022-12-15 18:03:37 +01:00
MasterofJOKers 1001e9dd0f day02: Use iterator instead of temporary Vec 2022-12-15 17:46:34 +01:00
MasterofJOKers 60f4e24250 Add part1 of day02 2022-12-15 17:33:38 +01:00
MasterofJOKers e66d90983e Add day01 2022-12-15 16:58:38 +01:00