{"id":"structural-twin-of-stock-problem","text":"The maximum-difference-between-increasing-elements solution is algorithmically identical to \"Best Time to Buy and Sell Stock\" (running minimum pattern) except it returns `-1` instead of `0` when no valid pair exists.","truth_value":"IN","source":"entries/2026/06/06/maximum-difference-between-increasing-elements-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"structural-twin-of-stock-problem","truth_value":"IN","reason":"premise"}]}}