Commit graph

5 commits

Author SHA1 Message Date
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