Commit graph

21 commits

Author SHA1 Message Date
bec8830fb6
use ParseIntList from common package 2023-12-05 20:01:55 +00:00
4b8792fed4
checkpoint 2023-12-05 19:57:53 +00:00
76583b3dda
refactor: add common functions to internal package
All checks were successful
/ test (pull_request) Successful in 25s
It's time to add common functions to the internal 'common' package.

- Add the function that read the contents from a file to a list.
- Add the function that parses a list of integers from a string.

...and more to come later...
2023-12-05 19:43:52 +00:00
904a2919f6
tests: add missing test suite descriptions 2023-12-04 23:19:53 +00:00
ec8824682d
refactor(Day 1): replace recursive calls with loop
For Part 2, the recursive function calls are replaced with a for loop in
the form of a while loop.
2023-12-04 23:07:45 +00:00
52bb3d64e1
feat: add a script for running the solutions 2023-12-04 20:59:19 +00:00
86fd297d5b
refactor(Day 1): Updated code structure for Day 1
- Moved parts 1 and 2 under one directory.
- Updated test suite for Day 1.
2023-12-04 18:43:57 +00:00
bd36605f3e
tests: update test suite for Day 2 2023-12-04 18:02:44 +00:00
53c58fa8c0
feat: add solution for 2023, Day 4
All checks were successful
/ test (pull_request) Successful in 27s
- Add the solution and the test suite for the Advent of Code,
  2023 - Day 4: Scratchcards
- style: applied gofmt for formatting
2023-12-04 17:36:05 +00:00
0f1ee8c599
refactor(Day 3): updated Day 3 solution code
- added a custom function to check if a rune is a symbol.
- changed name of type 'answer' to 'solution'.
- ci(forgejo actions): updated setup-go from v3 to v4.
2023-12-04 13:10:03 +00:00
5af35d0ccc
feat: add solution for 2023, Day 3
All checks were successful
/ test (pull_request) Successful in 24s
Add the solution and test suite for AoC 2023, Day 3: Gear Ratios
2023-12-04 01:26:50 +00:00
064b0a5abe
fix: use the constant value for 'blue'
All checks were successful
/ test (pull_request) Successful in 27s
2023-12-03 01:31:50 +00:00
ffe594cb54
ci(github): specify the version of Go to use 2023-12-03 00:26:06 +00:00
cfb64d80aa
ci: add workflows for both Actions
All checks were successful
/ test (pull_request) Successful in 25s
- add a workflow for Forgejo Actions
- add a workflow for GitHub Actions
2023-12-03 00:14:40 +00:00
01118b683b
refactor(test): condense test table 2023-12-02 18:01:53 +00:00
5e2efe6688
fix: read from input once
Refactored the code for the Day 2 solutions so that the input file is
only read once.
2023-12-02 17:46:44 +00:00
b8dba2d4e4
feat: add solution for 2023, Day 2: Cube Conundrum 2023-12-02 17:00:27 +00:00
648ebcab4e
refactor: formatting with gofmt 2023-12-01 17:28:33 +00:00
fcc2ad5666
perf: use trimLength to reduce recursion
Add trimLength to trim all but the last character of the detected
integers in text form. The last character is not trimmed during
recursion because it may be part of the next integer.

This should reduce the amount of recursion needed to complete the
calculation.
2023-12-01 17:21:34 +00:00
7384a04590
docs: updated README 2023-12-01 15:04:58 +00:00
d7a3348bfc
Initial commit 2023-12-01 15:03:51 +00:00