{"id":"buy-sell-stock-returns-zero-for-no-profit","text":"When no profitable transaction exists (monotonically decreasing prices), `maxProfit` returns `0`, never a negative number.","truth_value":"IN","source":"entries/2026/06/06/best-time-to-buy-and-sell-stock-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"buy-sell-stock-returns-zero-for-no-profit","truth_value":"IN","reason":"premise"}]}}