This commit is contained in:
Gregory 2022-02-22 01:55:11 +02:00
parent dfb6e1952d
commit 13c81a6334

View file

@ -235,6 +235,7 @@ func findCode(digitsAsString string, display []string) int {
return asInt return asInt
} }
// TODO: refactor too complicated
func P2(in string) int { func P2(in string) int {
lines := strings.Split(strings.TrimSpace(in), "\n") lines := strings.Split(strings.TrimSpace(in), "\n")
sum := 0 sum := 0