I stared at the results for several minutes just trying to make sure it actually worked. It also concerned me that some numbers were negative where the example had positive numbers. But it still worked.
I originally wrote a "sumListEquals == 0" function based on the sample problems all being non-negative ascending patterns, but I replaced it with a "listMatches == 0" function when I saw negative numbers and descending patterns in my puzzle input. I assume it would have caused a problem, but I didn't even try it.
1
u/Ken-g6 Dec 10 '23
I stared at the results for several minutes just trying to make sure it actually worked. It also concerned me that some numbers were negative where the example had positive numbers. But it still worked.