Commit graph

7 commits

Author SHA1 Message Date
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
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
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
d7a3348bfc
Initial commit 2023-12-01 15:03:51 +00:00