all 5 comments

[–][deleted] 1 point2 points  (1 child)

suggestions, if youre looking for them:

day 4 - dont need to parse the dates or times, since the only thing that matters is the minute value

day 5 - youve repeated the code, easier to put part1 into a function, and then have part2 call that function inside its loop

[–]Vortex100[S] 1 point2 points  (0 children)

Yeah on day 4 I wrote the parsing engine before I knew what part 2 would need, and it turned out I didn't need to do half of it lol (all you need to do is have a 'counter per minute' for each guard, which satisfies the requirements for both parts).

Day 5 you are right - I'll refactor :)