feat: solve day 10 part 2

This commit is contained in:
Stevan Freeborn
2025-12-24 18:13:07 -06:00
parent 838eb99ed9
commit 67df8a1ae7
4 changed files with 168 additions and 363 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func (b button) String() string {
return fmt.Sprintf("%v", b.switches)
}
func From(line string) button {
func From(line string) Button {
buttonRegex := regexp.MustCompile(`\d+`)
matches := buttonRegex.FindAllString(line, -1)