{"id":"subsequence-limited-sum-positive-input-invariant","text":"`bisect_right` on the prefix sum array requires strictly non-decreasing prefix sums, which holds only when all values in `nums` are positive; zero or negative values would break monotonicity and produce wrong answers.","truth_value":"IN","source":"entries/2026/06/06/longest-subsequence-with-limited-sum-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"subsequence-limited-sum-positive-input-invariant","truth_value":"IN","reason":"premise"}]}}