negative-one-sentinel-for-max-tracking

Status: IN

`largest-number-at-least-twice-of-others/solution.py` initializes `max_val` and `second_max` to -1, which is safe only because the problem constrains values to [0, 1000] — this sentinel would break for problems allowing negative inputs

Source: entries/2026/06/06/largest-number-at-least-twice-of-others-solution.md

JSON