{"id":"negative-one-sentinel-for-max-tracking","text":"`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","truth_value":"IN","source":"entries/2026/06/06/largest-number-at-least-twice-of-others-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"negative-one-sentinel-for-max-tracking","truth_value":"IN","reason":"premise"}]}}