Commit graph

24 commits

Author SHA1 Message Date
9dd5ae0c39
day(05): solve part 1
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-05 11:59:09 +01:00
2d68999fda
day(04): prefilter indices in the second part
Allows to get rid of the ‹when› expressions that just introduces another
level of indentation.

Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-04 11:40:57 +01:00
8730cbd423
day(04): factor out crossing directions
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-04 11:37:13 +01:00
cecb4e9c30
day(04): use one helper function for both parts
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-04 11:34:57 +01:00
5df8cfcf75
day(04): solve
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-04 11:32:14 +01:00
d7b0d5adf1
chore: add ‹no-op› comments instead of ‹TODO›
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-03 10:25:23 +01:00
f4854fa462
day(03): refactor
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-03 09:50:18 +01:00
cd852b0fbc
day(03): solve
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-03 09:46:35 +01:00
1613941d96
fix(day): refactor tests
• Fix a bug that caused ‹precompute()› not to be run if tests were run
  only for the second part.
• Merge the ‹test()› overloads into one function:
  · bugs in one place
  · DRY

Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-03 09:44:34 +01:00
7341109f4d
day(02): solve
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 16:08:12 +01:00
273204ca6b
day(01): convert to the solution using abstract class
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 16:07:45 +01:00
a29c0008d8
chore(pre-commit): autoupdate
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 16:06:24 +01:00
b3b129a03e
feat(day): implement an abstract class for days
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 15:56:26 +01:00
d5c33e1782
docs(utils): add documentation to functions
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 15:55:40 +01:00
6dc4ae4c45
ci(cz): allow docs as the type of change
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 15:55:15 +01:00
ef5509f4de
chore: format and lint all files
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 14:24:52 +01:00
ab7a9ecf74
ci(pre-commit): do not lint whitespaces in inputs
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 14:24:03 +01:00
123048530c
ci(pre-commit): exclude file templates from formatting
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 14:21:03 +01:00
fc6f3c54a8
ci(pre-commit): add pre-commit and commitizen
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-02 14:00:11 +01:00
78e3a42c4b
day(01): solve first day
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-01 13:40:13 +01:00
47da5f8507
chore(lib): include helpers from last Kotlin run
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-01 13:39:53 +01:00
2ce6111260
chore(git): correctly exclude challenge inputs
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-01 13:39:25 +01:00
GitHub Action
7605be196a
chore: template cleanup
(cherry picked from commit 8a8be969bb)
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-01 13:14:07 +01:00
Matej Focko
a4cc41918e
chore: initial commit
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-01 13:13:49 +01:00