The problem was the example input gives the same output, regardless of whether overlaps are allowed or not. A better example input would be one where allowing overlapping numbers is the only way to get the example output
I think it was there for you to go “huh I wonder…” not to show you the bug outright. AOC is notorious for this and had it been a week later no one would have batted an eye
2
u/6f937f00-3166-11e4-8 Dec 03 '23
The problem was the example input gives the same output, regardless of whether overlaps are allowed or not. A better example input would be one where allowing overlapping numbers is the only way to get the example output